Class UiTimedTracker<T extends TickerObserver & Tracker>

java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.ssai.tracking.ui.UiTimedTracker<T>
All Implemented Interfaces:
Component, Tracker

@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.
  • 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

      public T getTimedTracker()
    • getTimeline

      @NonNull public Timeline getTimeline()
      Description copied from interface: Tracker
      Returns the Timeline.
      Specified by:
      getTimeline in interface Tracker
    • track

      public void track(@NonNull List<TrackingEvent> trackingEvents)
      Description copied from interface: Tracker
      Tracks the given TrackingEvent.
      Specified by:
      track in interface Tracker
      Parameters:
      trackingEvents - List of events to be tracked.