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 TypeMethodDescriptionvoid
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
Removes 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:AdPodListener
Indicates than an Ad pod has started.- Specified by:
onAdPodStarted
in interfaceAdPodListener
- Parameters:
adPod
- the Ad pod
-
onAdPodEnded
Description copied from interface:AdPodListener
Indicates than an Ad pod has ended.- Specified by:
onAdPodEnded
in interfaceAdPodListener
- Parameters:
adPod
- the Ad pod
-
onAdOverlayConfigChanged
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
-