public class

PlaybackControlsRow.ClosedCaptioningAction

extends PlaybackControlsRow.MultiAction

 java.lang.Object

androidx.leanback.widget.Action

androidx.leanback.widget.PlaybackControlsRow.MultiAction

↳androidx.leanback.widget.PlaybackControlsRow.ClosedCaptioningAction

Overview

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

Summary

Fields
public static final intINDEX_OFF

Action index for closed caption is off.

public static final intINDEX_ON

Action index for closed caption is on.

public static final intOFF

Action index for closed caption is off.

public static final intON

Action index for closed caption is on.

from ActionNO_ID
Constructors
publicClosedCaptioningAction(Context context)

Constructor

publicClosedCaptioningAction(Context context, int highlightColor)

Constructor

Methods
from PlaybackControlsRow.MultiActiongetActionCount, getDrawable, getIndex, getLabel, getSecondaryLabel, nextIndex, setDrawables, setIndex, setLabels, setSecondaryLabels
from ActionaddKeyCode, getIcon, getId, getLabel1, getLabel2, removeKeyCode, respondsToKeyCode, setIcon, setId, setLabel1, setLabel2, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public static final int OFF

Deprecated: Use PlaybackControlsRow.ClosedCaptioningAction.INDEX_OFF

Action index for closed caption is off.

public static final int ON

Deprecated: Use PlaybackControlsRow.ClosedCaptioningAction.INDEX_ON

Action index for closed caption is on.

public static final int INDEX_OFF

Action index for closed caption is off.

public static final int INDEX_ON

Action index for closed caption is on.

Constructors

public ClosedCaptioningAction(Context context)

Constructor

Parameters:

context: Context used for loading resources.

public ClosedCaptioningAction(Context context, int highlightColor)

Constructor

Parameters:

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