SeekForwardButtonState

@UnstableApi
class SeekForwardButtonState


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

Summary

Public constructors

Public functions

suspend Nothing

Subscribes to updates from Player.Events and listens to

Unit

Handles the interaction with the SeekForwardButton button by seeking forward in the current androidx.media3.common.MediaItem by seekForwardAmountMs milliseconds.

Public properties

Boolean

determined by isCommandAvailable(Player.COMMAND_SEEK_FORWARD)

Long

determined by Player's seekForwardIncrement.

Public constructors

SeekForwardButtonState

SeekForwardButtonState(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 SeekForwardButton button by seeking forward in the current androidx.media3.common.MediaItem by seekForwardAmountMs milliseconds.

See also
seekForward

Public properties

isEnabled

val isEnabledBoolean

determined by isCommandAvailable(Player.COMMAND_SEEK_FORWARD)

seekForwardAmountMs

val seekForwardAmountMsLong

determined by Player's seekForwardIncrement.