Interface Ticker
-
public interface TickerThe timeline ticker is responsible to update the last and the current playhead position of the underlying video player, to itsTickerObserverobservers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTicker.PositionDescribes the positions where the Ticker can start.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidregisterObserver(TickerObserver tickerObserver)Registers an observer.voidreset()Resets the ticker.default voidstart(long position)Starts the ticker with the specified position value.voidstart(Ticker.Position position)Starts the ticker with the specifiedTicker.Positiontype.voidstop()Stops the ticker.voidtick()Updates the observers with the playhead position.voidunregisterObserver(TickerObserver tickerObserver)Unregisters an observer.
-
-
-
Method Detail
-
start
void start(@NonNull Ticker.Position position)Starts the ticker with the specifiedTicker.Positiontype.
-
start
default void start(long position)
Starts the ticker with the specified position value.- Parameters:
position- the absolute position to start the ticker.
-
stop
void stop()
Stops the ticker.
-
reset
void reset()
Resets the ticker.
-
tick
void tick()
Updates the observers with the playhead position.
-
registerObserver
void registerObserver(TickerObserver tickerObserver)
Registers an observer.- Parameters:
tickerObserver- the ticker observer
-
unregisterObserver
void unregisterObserver(TickerObserver tickerObserver)
Unregisters an observer.- Parameters:
tickerObserver- the ticker observer
-
-