Package com.brightcove.ssai.tracking.ui
Class UiTimedTracker<T extends TickerObserver & Tracker>
- java.lang.Object
-
- com.brightcove.player.event.AbstractComponent
-
- com.brightcove.ssai.tracking.ui.UiTimedTracker<T>
-
@ListensFor(events={"adPaused","adResumed","didSeekTo","didEnterFullScreen","didExitFullScreen","clickLinearCreative","renderedCompanion","adProgress"}) @Emits(events={}) public class UiTimedTracker<T extends TickerObserver & Tracker> extends AbstractComponent implements Tracker
Decorator of aTracker
which adds functionality to handle UI based events.
-
-
Field Summary
-
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends TickerObserver & Tracker>
UiTimedTrackercreate(EventEmitter eventEmitter, T tracker)
Instantiates a UiTimedTracker that decorates a TimedTracker.T
getTimedTracker()
Timeline
getTimeline()
Returns theTimeline
.void
track(java.util.List<TrackingEvent> trackingEvents)
Tracks the givenTrackingEvent
.-
Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
-
-
-
Method Detail
-
create
public static <T extends TickerObserver & Tracker> UiTimedTracker create(@NonNull EventEmitter eventEmitter, @NonNull T tracker)
Instantiates a UiTimedTracker that decorates a TimedTracker.- Parameters:
eventEmitter
- EventEmitter to listen for the UiEvents.tracker
- TimedTracker to decorate.- Returns:
- a new instance of a UiTimedTracker.
-
getTimedTracker
public T getTimedTracker()
-
getTimeline
@NonNull public Timeline getTimeline()
Description copied from interface:Tracker
Returns theTimeline
.- Specified by:
getTimeline
in interfaceTracker
-
track
public void track(@NonNull java.util.List<TrackingEvent> trackingEvents)
Description copied from interface:Tracker
Tracks the givenTrackingEvent
.
-
-