Package com.brightcove.ssai.ui
Class AdOverlayHandler
java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.ssai.ui.AdOverlayHandler
- All Implemented Interfaces:
Component,AdPodListener,AdOverlayConfigListener
@ListensFor(events={"adProgress","adDataReady","controlBarCreated"})
@Emits(events={"clickLinearCreative","skipAd"})
public class AdOverlayHandler
extends AbstractComponent
implements AdPodListener, AdOverlayConfigListener
-
Field Summary
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens -
Method Summary
Modifier and TypeMethodDescriptionvoidonAdOverlayConfigChanged(AdOverlayConfig adOverlayConfig) Triggered when there is aAdOverlayConfigchange.voidonAdPodEnded(AdPod adPod) Indicates than an Ad pod has ended.voidonAdPodStarted(AdPod adPod) Indicates than an Ad pod has started.voidRemoves all set listeners from the EventEmitter.Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener
-
Method Details
-
onAdPodStarted
Description copied from interface:AdPodListenerIndicates than an Ad pod has started.- Specified by:
onAdPodStartedin interfaceAdPodListener- Parameters:
adPod- the Ad pod
-
onAdPodEnded
Description copied from interface:AdPodListenerIndicates than an Ad pod has ended.- Specified by:
onAdPodEndedin interfaceAdPodListener- Parameters:
adPod- the Ad pod
-
onAdOverlayConfigChanged
Description copied from interface:AdOverlayConfigListenerTriggered when there is aAdOverlayConfigchange.- Specified by:
onAdOverlayConfigChangedin interfaceAdOverlayConfigListener- Parameters:
adOverlayConfig- the ad overlay config
-
removeListeners
public void removeListeners()Description copied from class:AbstractComponentRemoves all set listeners from the EventEmitter.- Overrides:
removeListenersin classAbstractComponent
-