PlaybackControlsRow.OnPlaybackProgressCallback


class PlaybackControlsRow.OnPlaybackProgressCallback


Listener for progress or duration change.

Summary

Public constructors

Public functions

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

Called when getBufferedPosition changed.

Unit

Called when getCurrentPosition changed.

Unit

Called when getDuration changed.

Public constructors

OnPlaybackProgressCallback

Added in 1.1.0
OnPlaybackProgressCallback()

Public functions

onBufferedPositionChanged

Added in 1.1.0
fun onBufferedPositionChanged(
    row: PlaybackControlsRow!,
    bufferedProgressMs: Long
): Unit

Called when getBufferedPosition changed.

Parameters
row: PlaybackControlsRow!

The PlaybackControlsRow that buffered progress changed.

bufferedProgressMs: Long

Buffered time in milliseconds.

onCurrentPositionChanged

Added in 1.1.0
fun onCurrentPositionChanged(row: PlaybackControlsRow!, currentTimeMs: Long): Unit

Called when getCurrentPosition changed.

Parameters
row: PlaybackControlsRow!

The PlaybackControlsRow that current time changed.

currentTimeMs: Long

Current time in milliseconds.

onDurationChanged

Added in 1.1.0
fun onDurationChanged(row: PlaybackControlsRow!, totalTime: Long): Unit

Called when getDuration changed.

Parameters
row: PlaybackControlsRow!

The PlaybackControlsRow that total time changed.

totalTime: Long

Total time in milliseconds.