MuteButton

Functions summary

Unit

A state container for a button that mutes and unmutes to the media.

Functions

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

A state container for a button that mutes and unmutes to the media.

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

Parameters
player: Player?

The Player to control.

content: @Composable MuteButtonState.() -> Unit

The composable content to be displayed for the button.