added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

PlaybackControlsRow.ClosedCaptioningAction

public static class PlaybackControlsRow.ClosedCaptioningAction
extends PlaybackControlsRow.MultiAction

java.lang.Object
   ↳ android.support.v17.leanback.widget.Action
     ↳ android.support.v17.leanback.widget.PlaybackControlsRow.MultiAction
       ↳ android.support.v17.leanback.widget.PlaybackControlsRow.ClosedCaptioningAction


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

Summary

Constants

int INDEX_OFF

Action index for closed caption is off.

int INDEX_ON

Action index for closed caption is on.

int OFF

This constant was deprecated in API level 26.1.0. Use INDEX_OFF

int ON

This constant was deprecated in API level 26.1.0. Use INDEX_ON

Inherited constants

From class android.support.v17.leanback.widget.Action

Public constructors

PlaybackControlsRow.ClosedCaptioningAction(Context context)

Constructor

PlaybackControlsRow.ClosedCaptioningAction(Context context, int highlightColor)

Constructor

Inherited methods

From class android.support.v17.leanback.widget.PlaybackControlsRow.MultiAction
From class android.support.v17.leanback.widget.Action
From class java.lang.Object

Constants

INDEX_OFF

added in version 26.1.0
int INDEX_OFF

Action index for closed caption is off.

Constant Value: 0 (0x00000000)

INDEX_ON

added in version 26.1.0
int INDEX_ON

Action index for closed caption is on.

Constant Value: 1 (0x00000001)

OFF

added in version 22.1.0
int OFF

This constant was deprecated in API level 26.1.0.
Use INDEX_OFF

Action index for closed caption is off.

Constant Value: 0 (0x00000000)

ON

added in version 22.1.0
int ON

This constant was deprecated in API level 26.1.0.
Use INDEX_ON

Action index for closed caption is on.

Constant Value: 1 (0x00000001)

Public constructors

PlaybackControlsRow.ClosedCaptioningAction

added in version 22.1.0
PlaybackControlsRow.ClosedCaptioningAction (Context context)

Constructor

Parameters
context Context: Context used for loading resources.

PlaybackControlsRow.ClosedCaptioningAction

added in version 22.1.0
PlaybackControlsRow.ClosedCaptioningAction (Context context, 
                int highlightColor)

Constructor

Parameters
context Context: Context used for loading resources.

highlightColor int: Color for the highlighted icon state.