Back to Exoplayer

TimeBar.OnScrubListener (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/ui/TimeBar.OnScrubListener.html

latest1.8 KB
Original Source

Package com.google.android.exoplayer2.ui

Interface TimeBar.OnScrubListener


public static interfaceTimeBar.OnScrubListener

Listener for scrubbing events.

Method Summary

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. |

Method Detail

- 

onScrubStart

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.

- 

onScrubMove

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.

- 

onScrubStop

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.