AnimatedPlayPauseButton

fun AnimatedPlayPauseButton(onPlayClick: () -> Unit, onPauseClick: () -> Unit, playing: Boolean, modifier: Modifier = Modifier, shape: Shape = CircleShape, colorScheme: ColorScheme = MaterialTheme.colorScheme, interactionSource: MutableInteractionSource? = null, enabled: Boolean = true, progressIndicator: @Composable () -> Unit = {}, content: @Composable () -> Unit = { AnimatedPlayPauseButtonContent(playing) })

A button that animates between a play and pause icon.

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.

shape

The shape of the button.

colorScheme

The color scheme used for the button.

interactionSource

The interaction source to use for the button.

enabled

Whether the button is enabled.

progressIndicator

The progress indicator to display.

content

The content of the button.