PlayPauseProgressButton

fun PlayPauseProgressButton(onPlayClick: () -> Unit, onPauseClick: () -> Unit, playing: Boolean, trackPositionUiModel: TrackPositionUiModel, modifier: Modifier = Modifier, colorScheme: ColorScheme = MaterialTheme.colorScheme, enabled: Boolean = true, colors: IconButtonColors = MediaButtonDefaults.playPauseButtonDefaultColors(colorScheme), iconSize: Dp = IconButtonDefaults.LargeIconSize, progressStrokeWidth: Dp = 4.dp, indicatorColor: Color = colorScheme.secondaryDim, trackColor: Color = colorScheme.secondary.copy(alpha = 0.3f))

PlayPauseButton with a circular progress indicator.

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.

trackPositionUiModel

The track position UI model.

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.

progressStrokeWidth

The width of the progress indicator stroke.

indicatorColor

The color of the progress indicator.

trackColor

The color of the progress indicator track.