Package-level declarations

Types

Link copied to clipboard
data class PlayerUiController(playerRepository: PlayerRepository)

Represents a mapping between media UI controls and a PlayerRepository.

Link copied to clipboard
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.

Link copied to clipboard
class PlayerUiStateProducer(playerRepository: PlayerRepository)

Produces a flow of PlayerUiState based on events produced by a PlayerRepository.

Link copied to clipboard
open class PlayerViewModel(playerRepository: PlayerRepository) : ViewModel

Properties