Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
sealed class SeekButtonIncrement

Functions

Link copied to clipboard
fun MediaButton(onClick: () -> Unit, icon: ImageVector, contentDescription: String, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ButtonColors = mediaButtonDefaultColors, iconSize: Dp = 32.dp, iconAlign: Alignment.Horizontal = Alignment.CenterHorizontally)

A base button for media controls.

Link copied to clipboard
fun PauseButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ButtonColors = ButtonDefaults.iconButtonColors(), iconSize: Dp = 32.dp)
Link copied to clipboard
fun PlayButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors, iconSize: Dp = 32.dp)
Link copied to clipboard
fun SeekBackButton(onClick: () -> Unit, seekButtonIncrement: SeekButtonIncrement, modifier: Modifier = Modifier, icon: ImageVector = MediaButtonDefaults.seekBackIcon(seekButtonIncrement), enabled: Boolean = true, colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors, iconSize: Dp = 32.dp)
Link copied to clipboard
fun SeekForwardButton(onClick: () -> Unit, seekButtonIncrement: SeekButtonIncrement, modifier: Modifier = Modifier, icon: ImageVector = MediaButtonDefaults.seekForwardIcon(seekButtonIncrement), enabled: Boolean = true, colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors, iconSize: Dp = 32.dp)
Link copied to clipboard
fun SeekToNextButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors, iconSize: Dp = 32.dp)
Link copied to clipboard
fun SeekToPreviousButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors, iconSize: Dp = 32.dp)
Link copied to clipboard
fun ShuffleToggleButton(shuffleOn: Boolean, onToggle: (Boolean) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: ToggleButtonColors = toggleButtonColors( checkedBackgroundColor = Color.Transparent, checkedContentColor = MaterialTheme.colors.onSurface, uncheckedBackgroundColor = Color.Transparent, uncheckedContentColor = MaterialTheme.colors.onSurface, ))