belongs to Maven artifact androidx.leanback:leanback:1.0.0-alpha1

PlaybackControlsRow.OnPlaybackProgressCallback

public static class PlaybackControlsRow.OnPlaybackProgressCallback
extends Object

java.lang.Object
   ↳ androidx.leanback.widget.PlaybackControlsRow.OnPlaybackProgressCallback


Listener for progress or duration change.

Summary

Public constructors

PlaybackControlsRow.OnPlaybackProgressCallback()

Public methods

void onBufferedPositionChanged(PlaybackControlsRow row, long bufferedProgressMs)

Called when PlaybackControlsRow.getBufferedPosition() changed.

void onCurrentPositionChanged(PlaybackControlsRow row, long currentTimeMs)

Called when PlaybackControlsRow.getCurrentPosition() changed.

void onDurationChanged(PlaybackControlsRow row, long totalTime)

Called when PlaybackControlsRow.getDuration() changed.

Inherited methods

Public constructors

PlaybackControlsRow.OnPlaybackProgressCallback

PlaybackControlsRow.OnPlaybackProgressCallback ()

Public methods

onBufferedPositionChanged

void onBufferedPositionChanged (PlaybackControlsRow row, 
                long bufferedProgressMs)

Called when PlaybackControlsRow.getBufferedPosition() changed.

Parameters
row PlaybackControlsRow: The PlaybackControlsRow that buffered progress changed.

bufferedProgressMs long: Buffered time in milliseconds.

onCurrentPositionChanged

void onCurrentPositionChanged (PlaybackControlsRow row, 
                long currentTimeMs)

Called when PlaybackControlsRow.getCurrentPosition() changed.

Parameters
row PlaybackControlsRow: The PlaybackControlsRow that current time changed.

currentTimeMs long: Current time in milliseconds.

onDurationChanged

void onDurationChanged (PlaybackControlsRow row, 
                long totalTime)

Called when PlaybackControlsRow.getDuration() changed.

Parameters
row PlaybackControlsRow: The PlaybackControlsRow that total time changed.

totalTime long: Total time in milliseconds.