@ListensFor(events={"adPaused","adResumed","didSeekTo","didEnterFullScreen","didExitFullScreen","clickLinearCreative","renderedCompanion","adProgress"}) @Emits(events={}) public class UiTimedTracker<T extends TickerObserver & Tracker> extends AbstractComponent implements Tracker
Tracker
which adds functionality to handle UI based events.eventEmitter, listenerTokens
Modifier and Type | Method and Description |
---|---|
static <T extends TickerObserver & Tracker> |
create(EventEmitter eventEmitter,
T tracker)
Instantiates a UiTimedTracker that decorates a TimedTracker.
|
T |
getTimedTracker() |
Timeline |
getTimeline()
Returns the
Timeline . |
void |
track(java.util.List<TrackingEvent> trackingEvents)
Tracks the given
TrackingEvent . |
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
public static <T extends TickerObserver & Tracker> UiTimedTracker create(@NonNull EventEmitter eventEmitter, @NonNull T tracker)
eventEmitter
- EventEmitter to listen for the UiEvents.tracker
- TimedTracker to decorate.public T getTimedTracker()
@NonNull public Timeline getTimeline()
Tracker
Timeline
.getTimeline
in interface Tracker
public void track(@NonNull java.util.List<TrackingEvent> trackingEvents)
Tracker
TrackingEvent
.