Package-level declarations
Types
Link copied to clipboard
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
Produces a flow of PlayerUiState based on events produced by a PlayerRepository.
Link copied to clipboard
Link copied to clipboard
State holder for the media progress indicator that supports both ongoing predictive progress and animating progress.
Properties
Link copied to clipboard
TimestampProvider used to generate timestamps for predicting progress. The timestamps must match those used to create com.google.android.horologist.media.model.MediaPositionPredictor and com.google.android.horologist.media.model.LiveMediaPositionPredictor instances.