PlayerUiState

data class PlayerUiState(val playEnabled: Boolean, val pauseEnabled: Boolean, val seekBackEnabled: Boolean, val seekForwardEnabled: Boolean, val seekInCurrentMediaItemEnabled: Boolean, val seekToPreviousEnabled: Boolean, val seekToNextEnabled: Boolean, val shuffleEnabled: Boolean, val shuffleOn: Boolean, val playPauseEnabled: Boolean, val playing: Boolean, val media: MediaUiModel?, val trackPositionUiModel: TrackPositionUiModel, val seekBackButtonIncrement: SeekButtonIncrement = SeekButtonIncrement.Unknown, val seekForwardButtonIncrement: SeekButtonIncrement = SeekButtonIncrement.Unknown, val connected: Boolean)

Represent the state of the Media UI components.

Parameters

playEnabled

whether PlayButton is enabled

pauseEnabled

whether PauseButton is enabled

seekBackEnabled

whether SeekBackButton button is enabled

seekForwardEnabled

whether SeekForwardButton button is enabled

seekToPreviousEnabled

whether SeekToPreviousButton is enabled

seekToNextEnabled

whether SeekToNextButton is enabled

shuffleEnabled

whether ShuffleToggleButton is enabled

shuffleOn

whether ShuffleToggleButton should display a shuffle on icon

playPauseEnabled

whether PlayPauseButton is enabled

playing

whether PlayPauseButton should display the play or pause button

media

current MediaUiModel

seekBackButtonIncrement

increment when seeking back.

seekForwardButtonIncrement

increment when seeking forward.

connected

is the player screen connected.

Constructors

Link copied to clipboard
constructor(playEnabled: Boolean, pauseEnabled: Boolean, seekBackEnabled: Boolean, seekForwardEnabled: Boolean, seekInCurrentMediaItemEnabled: Boolean, seekToPreviousEnabled: Boolean, seekToNextEnabled: Boolean, shuffleEnabled: Boolean, shuffleOn: Boolean, playPauseEnabled: Boolean, playing: Boolean, media: MediaUiModel?, trackPositionUiModel: TrackPositionUiModel, seekBackButtonIncrement: SeekButtonIncrement = SeekButtonIncrement.Unknown, seekForwardButtonIncrement: SeekButtonIncrement = SeekButtonIncrement.Unknown, connected: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard