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 a
Tracker
which adds functionality to handle UI based events.-
Field Summary
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends TickerObserver & Tracker>
UiTimedTrackercreate
(EventEmitter eventEmitter, T tracker) Instantiates a UiTimedTracker that decorates a TimedTracker.Returns theTimeline
.void
track
(List<TrackingEvent> trackingEvents) Tracks the givenTrackingEvent
.Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
Method Details
-
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
-
getTimeline
Description copied from interface:Tracker
Returns theTimeline
.- Specified by:
getTimeline
in interfaceTracker
-
track
Description copied from interface:Tracker
Tracks the givenTrackingEvent
.
-