Package 

Interface Ticker


  • 
    public interface Ticker
    
                        

    The timeline ticker is responsible to update the last and the current playhead position of the underlying video player, to its TickerObserver observers.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public enum Ticker.Position

      Describes the positions where the Ticker can start.

    • Method Summary

      Modifier and Type Method Description
      abstract void start(@NonNull() Ticker.Position position) Starts the ticker with the specified Position type.
      void start(long position) Starts the ticker with the specified position value.
      abstract boolean isRunning() Check if the ticker has started and is currently active
      abstract void stop() Stops the ticker.
      abstract void reset() Resets the ticker.
      abstract void tick() Updates the observers with the playhead position.
      abstract void registerObserver(TickerObserver tickerObserver) Registers an observer.
      abstract void unregisterObserver(TickerObserver tickerObserver) Unregisters an observer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • start

         void start(long position)

        Starts the ticker with the specified position value.

        Parameters:
        position - the absolute position to start the ticker.
      • isRunning

         abstract boolean isRunning()

        Check if the ticker has started and is currently active

      • stop

         abstract void stop()

        Stops the ticker.

      • reset

         abstract void reset()

        Resets the ticker.

      • tick

         abstract void tick()

        Updates the observers with the playhead position.

      • registerObserver

         abstract void registerObserver(TickerObserver tickerObserver)

        Registers an observer.

        Parameters:
        tickerObserver - the ticker observer