Package-level declarations

Functions

Link copied to clipboard
fun ControlButtonLayout(leftButton: @Composable () -> Unit, middleButton: @Composable () -> Unit, rightButton: @Composable () -> Unit, modifier: Modifier = Modifier)
Link copied to clipboard
fun CustomActionMediaButton(onClick: () -> Unit, contentDescription: String, icon: Paintable, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ButtonColors = ButtonDefaults.iconButtonColors(), iconSize: Dp = 32.dp, iconAlign: Alignment.Horizontal = Alignment.CenterHorizontally)

A base button for custom action media controls.

Link copied to clipboard
fun EntityButton(onClick: () -> Unit, icon: ImageVector, contentDescription: String, modifier: Modifier = Modifier, enabled: Boolean = true)

A standard visual design for a button on the Entity screen.

Link copied to clipboard
fun MediaArtwork(artworkPaintable: Paintable, contentDescription: String?, modifier: Modifier = Modifier)
fun MediaArtwork(media: MediaUiModel, modifier: Modifier = Modifier, placeholder: Painter? = null)
Link copied to clipboard
fun MediaChip(title: String, artworkPaintable: Paintable?, onClick: () -> Unit, modifier: Modifier = Modifier)

A rounded chip to show a single media title and its artwork.

fun MediaChip(media: MediaUiModel, onClick: () -> Unit, modifier: Modifier = Modifier, defaultTitle: String = "", placeholder: Painter? = null)

A rounded chip to show a single MediaUiModel.

Link copied to clipboard
fun MediaControlButtons(onPlayButtonClick: () -> Unit, onPauseButtonClick: () -> Unit, playPauseButtonEnabled: Boolean, playing: Boolean, onSeekToPreviousButtonClick: () -> Unit, seekToPreviousButtonEnabled: Boolean, onSeekToNextButtonClick: () -> Unit, seekToNextButtonEnabled: Boolean, modifier: Modifier = Modifier, colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors)

Standard media control buttons with no progress indicator, showing SeekToPreviousButton, PlayPauseButton and SeekToNextButton.

fun MediaControlButtons(onPlayButtonClick: () -> Unit, onPauseButtonClick: () -> Unit, playPauseButtonEnabled: Boolean, playing: Boolean, onSeekToPreviousButtonClick: () -> Unit, seekToPreviousButtonEnabled: Boolean, onSeekToNextButtonClick: () -> Unit, seekToNextButtonEnabled: Boolean, modifier: Modifier = Modifier, trackPositionUiModel: TrackPositionUiModel, colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors)

Standard media control buttons, showing SeekToPreviousButton, PlayPauseProgressButton and SeekToNextButton.

Link copied to clipboard
fun MediaInfoDisplay(media: MediaUiModel?, loading: Boolean, modifier: Modifier = Modifier)

A display implementation that shows the track information, loading or nothing playing.

Link copied to clipboard
fun PlayPauseButton(onPlayClick: () -> Unit, onPauseClick: () -> Unit, playing: Boolean, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ButtonColors = ButtonDefaults.iconButtonColors(), iconSize: Dp = 32.dp, backgroundColor: Color = MaterialTheme.colors.onBackground.copy(alpha = 0.10f), progress: @Composable () -> Unit = {})
Link copied to clipboard
fun PlayPauseProgressButton(onPlayClick: () -> Unit, onPauseClick: () -> Unit, playing: Boolean, trackPositionUiModel: TrackPositionUiModel, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ButtonColors = ButtonDefaults.iconButtonColors(), iconSize: Dp = 32.dp, progressStrokeWidth: Dp = 4.dp, progressColor: Color = MaterialTheme.colors.primary, trackColor: Color = MaterialTheme.colors.onSurface.copy(alpha = 0.10f), backgroundColor: Color = MaterialTheme.colors.onBackground.copy(alpha = 0.10f))
Link copied to clipboard
fun PodcastControlButtons(playerController: PlayerUiController, playerUiState: PlayerUiState, modifier: Modifier = Modifier, colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors)

Convenience wrapper of PodcastControlButtons.

fun PodcastControlButtons(onPlayButtonClick: () -> Unit, onPauseButtonClick: () -> Unit, playPauseButtonEnabled: Boolean, playing: Boolean, onSeekBackButtonClick: () -> Unit, seekBackButtonEnabled: Boolean, onSeekForwardButtonClick: () -> Unit, seekForwardButtonEnabled: Boolean, modifier: Modifier = Modifier, seekBackButtonIncrement: SeekButtonIncrement = SeekButtonIncrement.Unknown, seekForwardButtonIncrement: SeekButtonIncrement = SeekButtonIncrement.Unknown, colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors)

Standard Podcast control buttons with no progress indicator, showing SeekBackButton, PlayPauseProgressButton and SeekForwardButton.

fun PodcastControlButtons(onPlayButtonClick: () -> Unit, onPauseButtonClick: () -> Unit, playPauseButtonEnabled: Boolean, playing: Boolean, onSeekBackButtonClick: () -> Unit, seekBackButtonEnabled: Boolean, onSeekForwardButtonClick: () -> Unit, seekForwardButtonEnabled: Boolean, trackPositionUiModel: TrackPositionUiModel, modifier: Modifier = Modifier, seekBackButtonIncrement: SeekButtonIncrement = SeekButtonIncrement.Unknown, seekForwardButtonIncrement: SeekButtonIncrement = SeekButtonIncrement.Unknown, colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors)

Standard Podcast control buttons showing SeekBackButton, PlayPauseProgressButton and SeekForwardButton.