TextTrackStyleState

State holder for the style of subtitles, such as TextTrackStyleMenu.

Create an instance with rememberTextTrackStyleState.

Properties

Link copied to clipboard

The color of the background directly behind the subtitle text, including its opacity.

Link copied to clipboard

The opacity of the background directly behind the subtitle text, as a percentage.

Link copied to clipboard

The color of the edge of the subtitle text, including its opacity.

Link copied to clipboard
var edgeType: TextTrackStyle.EdgeType

The edge style of the subtitle text.

Link copied to clipboard

The color of the subtitle text, including its opacity.

Link copied to clipboard

The font family of the subtitles.

Link copied to clipboard

The opacity of the subtitle text, as a percentage.

Link copied to clipboard

The font size of the subtitles, as a percentage of the default font size.

Link copied to clipboard

Whether the font family can be changed.

Link copied to clipboard

The color of the window behind the subtitle text, including its opacity.

Link copied to clipboard

The opacity of the window behind the subtitle text, as a percentage.

Functions

Link copied to clipboard
fun reset()

Resets the style to the built-in defaults.

Link copied to clipboard

Selects the color of the background directly behind the subtitle text, keeping the current background opacity.

Link copied to clipboard

Selects the opacity of the background directly behind the subtitle text, keeping the current background color.

Link copied to clipboard

Selects the color of the edge of the subtitle text, keeping its current opacity.

Link copied to clipboard
fun selectEdgeType(edgeType: TextTrackStyle.EdgeType)

Selects the edge style of the subtitle text.

Link copied to clipboard

Selects the color of the subtitle text, keeping the current font opacity.

Link copied to clipboard

Selects the font family of the subtitles.

Link copied to clipboard
fun selectFontOpacity(opacity: Int)

Selects the opacity of the subtitle text, keeping the current font color.

Link copied to clipboard
fun selectFontSize(fontSize: Int)

Selects the font size of the subtitles, as a percentage of the default font size.

Link copied to clipboard

Selects the color of the window behind the subtitle text, keeping the current window opacity.

Link copied to clipboard
fun selectWindowOpacity(opacity: Int)

Selects the opacity of the window behind the subtitle text, keeping the current window color.