Google is committed to advancing racial equity for Black communities. See how.

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 Long: 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 Long: 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 Long: Total time in milliseconds.