Class SeekManager

All Implemented Interfaces:
Component

@Emits(events="seekTo") @ListensFor(events={"seekTo","didSeekTo"}) public class SeekManager extends AbstractComponent
Class responsible to manage SSAI seek events.
  • Constructor Details

    • SeekManager

      public SeekManager(EventEmitter emitter, Timeline timeline)
      Instantiates a new Seek manager.
      Parameters:
      emitter - the event emitter
      timeline - the timeline
  • Method Details

    • removeListeners

      public void removeListeners()
      Description copied from class: AbstractComponent
      Removes all set listeners from the EventEmitter.
      Overrides:
      removeListeners in class AbstractComponent
    • addSeekListener

      public boolean addSeekListener(@NonNull SeekListener seekListener)
      Adds a seek listener
      Parameters:
      seekListener - the seek listener
      Returns:
      true if added successfully
    • removeSeekListener

      public boolean removeSeekListener(@NonNull SeekListener seekListener)
      Removes a seek listener
      Parameters:
      seekListener - the seek listener
      Returns:
      true if removed successfully
    • removeAllSeekListeners

      public void removeAllSeekListeners()
      Removes all seek listeners.