Enum GoogleImaAdEventType
-
- All Implemented Interfaces:
-
com.theoplayer.android.api.event.EventType,java.io.Serializable,kotlin.Comparable
public enum GoogleImaAdEventType extends Enum<GoogleImaAdEventType> implements EventType<GoogleImaAdEvent>
The event types of GoogleImaAdEvent.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<GoogleImaAdEventType>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_ADS_COMPLETEDFired when all the valid ads in the ads response have completed, or when the response doesn't return any valid ads.
AD_BREAK_FETCH_ERRORFired when an adbreak will not play back any ads.
CLICKEDFired when an ad is clicked.
COMPLETEDFired when a single ad completes playing.
CUEPOINTS_CHANGEDFired when the cuepoints have changed.
A list of cuepoints can be seen as a time-schedule of adbreaks.
Only triggered for VOD streams.
CONTENT_PAUSE_REQUESTEDFired when content should be paused. This usually happens right before an ad is about to hide the content.
For IMA this event will indicate the start of an adbreak.
CONTENT_RESUME_REQUESTEDFired when content should be resumed. This usually happens when an ad finishes or collapses.
For IMA this event will indicate the end of an adbreak.
FIRST_QUARTILEFired when the ad has completed playing the first quartile (25%).
LOGFired to enable the SDK to communicate a message to be logged, which is stored in adData.
A VPAID ad sends a LOG message.
A non-fatal playback error occurs. In this case the adData object will contain extra information.
AD_BREAK_READYFired when an adbreak is ready from VMAP or ad rule ads.
This will only fire if autoPlayAdBreaks has been set to false in ImaSdkSettings.
The adData object will contain an adBreakTime property. This property will represent the time at which the adbreak occurred. 0 for pre-rolls, -1 for post-rolls. For mid-rolls, content playhead time, in seconds.
MIDPOINTFired when the ad has completed playing the first half (50%).
PAUSEDFired when an ad is paused.
RESUMEDFired when an ad is resumed.
SKIPPABLE_STATE_CHANGEDFired when an ad changes its skippable state. E.g. will trigger at a given point, if the ad is skippable after that particular point in time.
SKIPPEDFired when an ad was skipped.
STARTEDFired when an ad starts playing.
TAPPEDFired when a non-clickthrough portion of a video ad is clicked.
ICON_TAPPEDFired when the user has tapped an ad icon.
On mobile, this will navigate to the landing page.
On Android TV, this will present a modal dialog containing the VAST icon fallback image.
ICON_FALLBACK_IMAGE_CLOSEDFired when the user has closed the icon fallback image dialog.
This event only fires for Connected TV devices.
This may be a good time to resume ad playback if the user is ready to continue playing the ad.
THIRD_QUARTILEFired when the ad has completed playing the third quarter (75%).
LOADEDFired when the VAST response has been received.
AD_PROGRESSFired to inform of ad progress. Can be used by the publisher to display some sort of countdown timer.
AD_BUFFERINGFired when playback stalls while the ad buffers.
AD_BREAK_STARTEDFired when an adbreak in a stream starts. An adbreak can contain multiple ads.
This event is only triggered for Google DAI, for IMA refer to CONTENT_PAUSE_REQUESTED.
AD_BREAK_ENDEDFired when an adbreak in a stream ends.
This event is only triggered for Google DAI, for IMA refer to CONTENT_RESUME_REQUESTED.
AD_PERIOD_STARTEDFired when an ad period in a stream starts.
This event will be fired even for ads that are being replayed or when seeking to the middle of an adbreak.
AD_PERIOD_ENDEDFired when an ad period in a stream ends.
AD_ERRORFired when an ad error occurs.
-
Method Summary
Modifier and Type Method Description StringgetName()Function to get the name (textual representation) of an IMA related event. final GoogleImaAdEventTypevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<GoogleImaAdEventType>values()Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<GoogleImaAdEventType>getEntries()The event types of GoogleImaAdEvent. -
-
Method Detail
-
getName
String getName()
Function to get the name (textual representation) of an IMA related event.
- Returns:
The name of the event (NonNull).
-
valueOf
final GoogleImaAdEventType valueOf(String value)
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
final Array<GoogleImaAdEventType> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<GoogleImaAdEventType> getEntries()
The event types of GoogleImaAdEvent.
-
-
-
-