ClosedCaptioningAction

open class ClosedCaptioningAction : PlaybackControlsRow.MultiAction
kotlin.Any
   ↳ androidx.leanback.widget.Action
   ↳ androidx.leanback.widget.PlaybackControlsRow.MultiAction
   ↳ androidx.leanback.widget.PlaybackControlsRow.ClosedCaptioningAction

An action for displaying a CC (Closed Captioning) icon.

Summary

Constants
static Int

Action index for closed caption is off.

static Int

Action index for closed caption is on.

static Int

Action index for closed caption is off.

static Int

Action index for closed caption is on.

Inherited constants
Public constructors
<init>(context: Context!)

Constructor

<init>(context: Context!, highlightColor: Int)

Constructor

Inherited functions

Constants

OFF

static val OFF: Int

Action index for closed caption is off.

Value: 0

ON

static val ON: Int

Action index for closed caption is on.

Value: 1

INDEX_OFF

static val INDEX_OFF: Int

Action index for closed caption is off.

Value: 0

INDEX_ON

static val INDEX_ON: Int

Action index for closed caption is on.

Value: 1

Public constructors

<init>

ClosedCaptioningAction(context: Context!)

Constructor

Parameters
context Context!: Context used for loading resources.

<init>

ClosedCaptioningAction(context: Context!, highlightColor: Int)

Constructor

Parameters
context Context!: Context used for loading resources.
highlightColor Context!: Color for the highlighted icon state.