Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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

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

OFF

static val OFF: Int

Deprecated: Use INDEX_OFF

Action index for closed caption is off.

Value: 0

ON

static val ON: Int

Deprecated: Use INDEX_ON

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.