belongs to Maven artifact androidx.leanback:leanback:1.0.0-alpha1

PlaybackControlsRow.ClosedCaptioningAction

public static class PlaybackControlsRow.ClosedCaptioningAction
extends PlaybackControlsRow.MultiAction

java.lang.Object
   ↳ 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

int INDEX_OFF

Action index for closed caption is off.

int INDEX_ON

Action index for closed caption is on.

int OFF

This constant is deprecated. Use INDEX_OFF

int ON

This constant is deprecated. Use INDEX_ON

Inherited constants

Public constructors

PlaybackControlsRow.ClosedCaptioningAction(Context context)

Constructor

PlaybackControlsRow.ClosedCaptioningAction(Context context, int highlightColor)

Constructor

Inherited methods

Constants

INDEX_OFF

int INDEX_OFF

Action index for closed caption is off.

Constant Value: 0 (0x00000000)

INDEX_ON

int INDEX_ON

Action index for closed caption is on.

Constant Value: 1 (0x00000001)

OFF

int OFF

This constant is deprecated.
Use INDEX_OFF

Action index for closed caption is off.

Constant Value: 0 (0x00000000)

ON

int ON

This constant is deprecated.
Use INDEX_ON

Action index for closed caption is on.

Constant Value: 1 (0x00000001)

Public constructors

PlaybackControlsRow.ClosedCaptioningAction

PlaybackControlsRow.ClosedCaptioningAction (Context context)

Constructor

Parameters
context Context: Context used for loading resources.

PlaybackControlsRow.ClosedCaptioningAction

PlaybackControlsRow.ClosedCaptioningAction (Context context, 
                int highlightColor)

Constructor

Parameters
context Context: Context used for loading resources.

highlightColor int: Color for the highlighted icon state.