public class

PlaybackControlsRow.OnPlaybackProgressCallback

extends java.lang.Object

 java.lang.Object

↳androidx.leanback.widget.PlaybackControlsRow.OnPlaybackProgressCallback

Overview

Listener for progress or duration change.

Summary

Constructors
publicOnPlaybackProgressCallback()

Methods
public voidonBufferedPositionChanged(PlaybackControlsRow row, long bufferedProgressMs)

Called when PlaybackControlsRow.getBufferedPosition() changed.

public voidonCurrentPositionChanged(PlaybackControlsRow row, long currentTimeMs)

Called when PlaybackControlsRow.getCurrentPosition() changed.

public voidonDurationChanged(PlaybackControlsRow row, long totalTime)

Called when PlaybackControlsRow.getDuration() changed.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public OnPlaybackProgressCallback()

Methods

public void onCurrentPositionChanged(PlaybackControlsRow row, long currentTimeMs)

Called when PlaybackControlsRow.getCurrentPosition() changed.

Parameters:

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

public void onDurationChanged(PlaybackControlsRow row, long totalTime)

Called when PlaybackControlsRow.getDuration() changed.

Parameters:

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

public void onBufferedPositionChanged(PlaybackControlsRow row, long bufferedProgressMs)

Called when PlaybackControlsRow.getBufferedPosition() changed.

Parameters:

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