AmbientPlayPauseButton

fun AmbientPlayPauseButton(onPlayClick: () -> Unit, onPauseClick: () -> Unit, playing: Boolean, modifier: Modifier = Modifier, colorScheme: ColorScheme = MaterialTheme.colorScheme, enabled: Boolean = true, iconSize: Dp = IconButtonDefaults.LargeIconSize)

A play pause button to display in the ambient mode.

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.

colorScheme

The ColorScheme used for the button.

modifier

The modifier to apply to the button.

enabled

Whether the button is enabled.

iconSize

The size of the icon.