docs/doc/reference/com/google/android/exoplayer2/ui/TimeBar.OnScrubListener.html
Package com.google.android.exoplayer2.ui
public static interfaceTimeBar.OnScrubListener
Listener for scrubbing events.
All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | onScrubMove(TimeBar timeBar, long position) |
Called when the user moves the scrubber.
|
| void | onScrubStart(TimeBar timeBar, long position) |
Called when the user starts moving the scrubber.
|
| void | onScrubStop(TimeBar timeBar, long position, boolean canceled) |
Called when the user stops moving the scrubber.
|
-
void onScrubStart([TimeBar](TimeBar.html "interface in com.google.android.exoplayer2.ui")timeBar,
long position)
Called when the user starts moving the scrubber.
Parameters:timeBar - The time bar.position - The scrub position in milliseconds.
-
void onScrubMove([TimeBar](TimeBar.html "interface in com.google.android.exoplayer2.ui")timeBar,
long position)
Called when the user moves the scrubber.
Parameters:timeBar - The time bar.position - The scrub position in milliseconds.
-
void onScrubStop([TimeBar](TimeBar.html "interface in com.google.android.exoplayer2.ui")timeBar,
long position,
boolean canceled)
Called when the user stops moving the scrubber.
Parameters:timeBar - The time bar.position - The scrub position in milliseconds.canceled - Whether scrubbing was canceled.