public interface Ticker
TickerObserver observers.| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
Ticker.Position
Describes the positions where the Ticker can start. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
registerObserver(TickerObserver tickerObserver)
Registers an observer. 
 | 
void | 
reset()
Resets the ticker. 
 | 
default void | 
start(long position)
Starts the ticker with the specified position value. 
 | 
void | 
start(Ticker.Position position)
Starts the ticker with the specified  
Ticker.Position type. | 
void | 
stop()
Stops the ticker. 
 | 
void | 
tick()
Updates the observers with the playhead position. 
 | 
void | 
unregisterObserver(TickerObserver tickerObserver)
Unregisters an observer. 
 | 
void start(@NonNull
           Ticker.Position position)
Ticker.Position type.default void start(long position)
position - the absolute position to start the ticker.void stop()
void reset()
void tick()
void registerObserver(TickerObserver tickerObserver)
tickerObserver - the ticker observervoid unregisterObserver(TickerObserver tickerObserver)
tickerObserver - the ticker observer