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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAdOverlayConfigChanged(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.voidremoveListeners()Removes all set listeners from the EventEmitter.-
Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener
-
-
-
-
Method Detail
-
onAdPodStarted
public void onAdPodStarted(AdPod adPod)
Description copied from interface:AdPodListenerIndicates than an Ad pod has started.- Specified by:
onAdPodStartedin interfaceAdPodListener- Parameters:
adPod- the Ad pod
-
onAdPodEnded
public void onAdPodEnded(AdPod adPod)
Description copied from interface:AdPodListenerIndicates than an Ad pod has ended.- Specified by:
onAdPodEndedin interfaceAdPodListener- Parameters:
adPod- the Ad pod
-
onAdOverlayConfigChanged
public void onAdOverlayConfigChanged(@NonNull AdOverlayConfig adOverlayConfig)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
-
-