@ListensFor(events={"adProgress","adDataReady","controlBarCreated"}) @Emits(events={"clickLinearCreative","skipAd"}) public class AdOverlayHandler extends AbstractComponent implements AdPodListener, AdOverlayConfigListener
eventEmitter, listenerTokens
Modifier and Type | Method and Description |
---|---|
void |
onAdOverlayConfigChanged(AdOverlayConfig adOverlayConfig)
Triggered when there is a
AdOverlayConfig 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.
|
addListener, addOnceListener, getEventEmitter, removeListener
public void onAdPodStarted(AdPod adPod)
AdPodListener
onAdPodStarted
in interface AdPodListener
adPod
- the Ad podpublic void onAdPodEnded(AdPod adPod)
AdPodListener
onAdPodEnded
in interface AdPodListener
adPod
- the Ad podpublic void onAdOverlayConfigChanged(@NonNull AdOverlayConfig adOverlayConfig)
AdOverlayConfigListener
AdOverlayConfig
change.onAdOverlayConfigChanged
in interface AdOverlayConfigListener
adOverlayConfig
- the ad overlay configpublic void removeListeners()
AbstractComponent
removeListeners
in class AbstractComponent