PlayPauseButton

Functions summary

Unit

A state container for a button that plays or pauses the media item.

Functions

@UnstableApi
@Composable
fun PlayPauseButton(player: Player?, content: @Composable PlayPauseButtonState.() -> Unit): Unit

A state container for a button that plays or pauses the media item.

This composable manages the enabled state and click handling of a play-pause button. The UI is provided by the content lambda, which has access to the PlayPauseButtonState.

Parameters
player: Player?

The Player to control.

content: @Composable PlayPauseButtonState.() -> Unit

The composable content to be displayed for the button.