TimeBar.OnScrubListener


public interface TimeBar.OnScrubListener


Listener for scrubbing events.

Summary

Public methods

abstract void
onScrubMove(TimeBar timeBar, long position)

Called when the user moves the scrubber.

abstract void
onScrubStart(TimeBar timeBar, long position)

Called when the user starts moving the scrubber.

abstract void
onScrubStop(TimeBar timeBar, long position, boolean canceled)

Called when the user stops moving the scrubber.

Public methods

onScrubMove

abstract void onScrubMove(TimeBar timeBar, long position)

Called when the user moves the scrubber.

Parameters
TimeBar timeBar

The time bar.

long position

The scrub position in milliseconds.

onScrubStart

abstract void onScrubStart(TimeBar timeBar, long position)

Called when the user starts moving the scrubber.

Parameters
TimeBar timeBar

The time bar.

long position

The scrub position in milliseconds.

onScrubStop

abstract void onScrubStop(TimeBar timeBar, long position, boolean canceled)

Called when the user stops moving the scrubber.

Parameters
TimeBar timeBar

The time bar.

long position

The scrub position in milliseconds.

boolean canceled

Whether scrubbing was canceled.