@Emits(events="setMarkers") public class UIManager extends AbstractComponent implements AdPodListener, AdOverlayConfigListener
BaseVideoView
and the BrightcoveMediaController
.eventEmitter, listenerTokens
Constructor and Description |
---|
UIManager(BaseVideoView baseVideoView,
TimelineManager timelineManager)
Instantiates a new Ui manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdMarkers(java.util.List<java.lang.Long> markerPositions)
Add ad markers.
|
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 UIManager(@NonNull BaseVideoView baseVideoView, @NonNull TimelineManager timelineManager)
baseVideoView
- the base video viewtimelineManager
- the timeline managerpublic void addAdMarkers(java.util.List<java.lang.Long> markerPositions)
markerPositions
- the marker positionspublic 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 removeListeners()
AbstractComponent
removeListeners
in class AbstractComponent
public void onAdOverlayConfigChanged(@NonNull AdOverlayConfig adOverlayConfig)
AdOverlayConfigListener
AdOverlayConfig
change.onAdOverlayConfigChanged
in interface AdOverlayConfigListener
adOverlayConfig
- the ad overlay config