added in version 26.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

PlaybackControlsRow.OnPlaybackProgressCallback

public static class PlaybackControlsRow.OnPlaybackProgressCallback
extends Object

java.lang.Object
   ↳ android.support.v17.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 getBufferedPosition() changed.

void onCurrentPositionChanged(PlaybackControlsRow row, long currentTimeMs)

Called when getCurrentPosition() changed.

void onDurationChanged(PlaybackControlsRow row, long totalTime)

Called when getDuration() changed.

Inherited methods

From class java.lang.Object

Public constructors

PlaybackControlsRow.OnPlaybackProgressCallback

added in version 26.1.0
PlaybackControlsRow.OnPlaybackProgressCallback ()

Public methods

onBufferedPositionChanged

added in version 26.1.0
void onBufferedPositionChanged (PlaybackControlsRow row, 
                long bufferedProgressMs)

Called when getBufferedPosition() changed.

Parameters
row PlaybackControlsRow: The PlaybackControlsRow that buffered progress changed.

bufferedProgressMs long: Buffered time in milliseconds.

onCurrentPositionChanged

added in version 26.1.0
void onCurrentPositionChanged (PlaybackControlsRow row, 
                long currentTimeMs)

Called when getCurrentPosition() changed.

Parameters
row PlaybackControlsRow: The PlaybackControlsRow that current time changed.

currentTimeMs long: Current time in milliseconds.

onDurationChanged

added in version 26.1.0
void onDurationChanged (PlaybackControlsRow row, 
                long totalTime)

Called when getDuration() changed.

Parameters
row PlaybackControlsRow: The PlaybackControlsRow that total time changed.

totalTime long: Total time in milliseconds.