PlayPauseButton

fun PlayPauseButton(onPlayClick: () -> Unit, onPauseClick: () -> Unit, playing: Boolean, modifier: Modifier = Modifier, colorScheme: ColorScheme = MaterialTheme.colorScheme, enabled: Boolean = true, colors: IconButtonColors = MediaButtonDefaults.playPauseButtonDefaultColors(colorScheme), iconSize: Dp = IconButtonDefaults.LargeIconSize, progress: @Composable () -> Unit = {})

Play/Pause button which is shown in middle of the MediaControlButtons.

Parameters

onPlayClick

Callback to invoke when the play button is clicked.

onPauseClick

Callback to invoke when the pause button is clicked.

playing

Whether the button should be in the play or pause state.

modifier

The modifier to apply to the button.

colorScheme

The color scheme used for the button.

enabled

Whether the button is enabled.

colors

The colors to use for the button.

iconSize

The size of the icon.

progress

The progress indicator to display.