SeekBackButtonState

@UnstableApi
class SeekBackButtonState


State that holds all interactions to correctly deal with a UI component representing a seek back button.

Summary

Public constructors

Public functions

suspend Nothing

Subscribes to updates from Player.Events and listens to

Unit

Handles the interaction with the SeekBackButton button by seeking back in the current androidx.media3.common.MediaItem by seekBackAmountMs milliseconds.

Public properties

Boolean

determined by isCommandAvailable(Player.COMMAND_SEEK_BACK)

Long

determined by Player's seekBackIncrement.

Public constructors

SeekBackButtonState

SeekBackButtonState(player: Player)

Public functions

observe

suspend fun observe(): Nothing

Subscribes to updates from Player.Events and listens to

onClick

fun onClick(): Unit

Handles the interaction with the SeekBackButton button by seeking back in the current androidx.media3.common.MediaItem by seekBackAmountMs milliseconds.

See also
seekBack

Public properties

isEnabled

val isEnabledBoolean

determined by isCommandAvailable(Player.COMMAND_SEEK_BACK)

seekBackAmountMs

val seekBackAmountMsLong

determined by Player's seekBackIncrement.