TimeBar.OnScrubListener


interface TimeBar.OnScrubListener


Listener for scrubbing events.

Summary

Public functions

Unit
onScrubMove(timeBar: TimeBar!, position: Long)

Called when the user moves the scrubber.

Unit
onScrubStart(timeBar: TimeBar!, position: Long)

Called when the user starts moving the scrubber.

Unit
onScrubStop(timeBar: TimeBar!, position: Long, canceled: Boolean)

Called when the user stops moving the scrubber.

Public functions

onScrubMove

fun onScrubMove(timeBar: TimeBar!, position: Long): Unit

Called when the user moves the scrubber.

Parameters
timeBar: TimeBar!

The time bar.

position: Long

The scrub position in milliseconds.

onScrubStart

fun onScrubStart(timeBar: TimeBar!, position: Long): Unit

Called when the user starts moving the scrubber.

Parameters
timeBar: TimeBar!

The time bar.

position: Long

The scrub position in milliseconds.

onScrubStop

fun onScrubStop(timeBar: TimeBar!, position: Long, canceled: Boolean): Unit

Called when the user stops moving the scrubber.

Parameters
timeBar: TimeBar!

The time bar.

position: Long

The scrub position in milliseconds.

canceled: Boolean

Whether scrubbing was canceled.