OnPlaybackProgressCallback

open class OnPlaybackProgressCallback
kotlin.Any
   ↳ androidx.leanback.widget.PlaybackControlsRow.OnPlaybackProgressCallback

Listener for progress or duration change.

Summary

Public constructors

Listener for progress or duration change.

Public methods

open Unit
onBufferedPositionChanged(row: PlaybackControlsRow!, bufferedProgressMs: Long)

Called when PlaybackControlsRow#getBufferedPosition() changed.

open Unit

Called when PlaybackControlsRow#getCurrentPosition() changed.

open Unit

Called when PlaybackControlsRow#getDuration() changed.

Public constructors

<init>

OnPlaybackProgressCallback()

Listener for progress or duration change.

Public methods

onBufferedPositionChanged

open fun onBufferedPositionChanged(row: PlaybackControlsRow!, bufferedProgressMs: Long): Unit

Called when PlaybackControlsRow#getBufferedPosition() changed.

Parameters
row PlaybackControlsRow!: The PlaybackControlsRow that buffered progress changed.
bufferedProgressMs PlaybackControlsRow!: Buffered time in milliseconds.

onCurrentPositionChanged

open fun onCurrentPositionChanged(row: PlaybackControlsRow!, currentTimeMs: Long): Unit

Called when PlaybackControlsRow#getCurrentPosition() changed.

Parameters
row PlaybackControlsRow!: The PlaybackControlsRow that current time changed.
currentTimeMs PlaybackControlsRow!: Current time in milliseconds.

onDurationChanged

open fun onDurationChanged(row: PlaybackControlsRow!, totalTime: Long): Unit

Called when PlaybackControlsRow#getDuration() changed.

Parameters
row PlaybackControlsRow!: The PlaybackControlsRow that total time changed.
totalTime PlaybackControlsRow!: Total time in milliseconds.