CaptionStyle

data class CaptionStyle(val foregroundColor: Int, val backgroundColor: Int, val windowColor: Int, val edgeType: Int, val edgeColor: Int, val typeface: Typeface?)

Styling options for subtitle and caption rendering.

This type mirrors CaptionStyleCompat and is used with SubtitleRendererView.setStyle.

Constructors

Link copied to clipboard
constructor(foregroundColor: Int, backgroundColor: Int, windowColor: Int, edgeType: Int, edgeColor: Int, typeface: Typeface?)

Properties

Link copied to clipboard

Background color behind the rendered caption text as an Android ARGB color int.

Link copied to clipboard

Color used for the configured edgeType as an Android ARGB color int.

Link copied to clipboard

Edge style applied to caption text.

Link copied to clipboard

Text color as an Android ARGB color int, for example a value from android.graphics.Color.

Link copied to clipboard

Typeface used for caption text, or null to use the default typeface.

Link copied to clipboard

Background color of the cue window as an Android ARGB color int.