Nimbus Android SDK

//sdk/com.adsbynimbus.render/AdEvent

AdEvent

enum AdEvent : Enum<AdEvent>

An event representing a lifecycle event of an ad managed by Nimbus

Entries

LOADED LOADED
The ad has been loaded and all associated views are attached to the screen
IMPRESSION IMPRESSION
The ad has satisfied the conditions to register an impression
CLICKED CLICKED
The ad has been clicked
PAUSED PAUSED
The ad is paused; any media assets will have paused playback
RESUMED RESUMED
The ad is resumed; any media assets will have started playback
FIRST_QUARTILE FIRST_QUARTILE
A video ad has played 25% of its content; this event does not fire for static ads
MIDPOINT MIDPOINT
A video ad has played 50% of its content; this event does not fire for static ads
THIRD_QUARTILE THIRD_QUARTILE
A video ad has played 75% of its content; this event does not fire for static ads
COMPLETED COMPLETED
The ad has completed its playback; this event can fire for static ads if a timeout has been configured
SKIPPED SKIPPED
The ad has been skipped; this event will only fire for rewarded ads
DESTROYED DESTROYED
The ad has been destroyed; all resources will have been removed from the view hierarchy and disposed of
VOLUME_CHANGED VOLUME_CHANGED
The ad volume has changed; currently only applies to video ads

Types

Name Summary
Listener fun interface Listener
Listener for ad events

Properties

Name Summary
entries val entries: EnumEntries<AdEvent>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
name val name: String
ordinal val ordinal: Int

Functions

Name Summary
valueOf fun valueOf(value: String): AdEvent
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values fun values(): Array<AdEvent>
Returns an array containing the constants of this enum type, in the order they're declared.