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 void
onAdOverlayConfigChanged(AdOverlayConfig adOverlayConfig)
Triggered when there is aAdOverlayConfig
change.void
onAdPodEnded(AdPod adPod)
Indicates than an Ad pod has ended.void
onAdPodStarted(AdPod adPod)
Indicates than an Ad pod has started.void
removeListeners()
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:AdPodListener
Indicates than an Ad pod has started.- Specified by:
onAdPodStarted
in interfaceAdPodListener
- Parameters:
adPod
- the Ad pod
-
onAdPodEnded
public void onAdPodEnded(AdPod adPod)
Description copied from interface:AdPodListener
Indicates than an Ad pod has ended.- Specified by:
onAdPodEnded
in interfaceAdPodListener
- Parameters:
adPod
- the Ad pod
-
onAdOverlayConfigChanged
public void onAdOverlayConfigChanged(@NonNull AdOverlayConfig adOverlayConfig)
Description copied from interface:AdOverlayConfigListener
Triggered when there is aAdOverlayConfig
change.- Specified by:
onAdOverlayConfigChanged
in interfaceAdOverlayConfigListener
- Parameters:
adOverlayConfig
- the ad overlay config
-
removeListeners
public void removeListeners()
Description copied from class:AbstractComponent
Removes all set listeners from the EventEmitter.- Overrides:
removeListeners
in classAbstractComponent
-
-