PlayButtonParams

data class PlayButtonParams(val isPlaying: Boolean, val contentDescription: String?, val onClick: () -> Unit) : VideoPlayerButtonParams(source)

PlayButtonParams represents the parameters for the play / pause button in the video player.

Constructors

Link copied to clipboard
constructor(isPlaying: Boolean, contentDescription: String?, onClick: () -> Unit)

Properties

Link copied to clipboard

The content description for the button.

Link copied to clipboard

A boolean that represents whether the video is currently playing or paused.

Link copied to clipboard
val onClick: () -> Unit

The action to be performed when the button is clicked. Use this to toggle the play / pause state of the video.