public class

PlaybackControlsRow.PlayPauseAction

extends PlaybackControlsRow.MultiAction

 java.lang.Object

androidx.leanback.widget.Action

androidx.leanback.widget.PlaybackControlsRow.MultiAction

↳androidx.leanback.widget.PlaybackControlsRow.PlayPauseAction

Overview

An action displaying icons for play and pause.

Summary

Fields
public static final intINDEX_PAUSE

Action index for the pause icon.

public static final intINDEX_PLAY

Action index for the play icon.

public static final intPAUSE

Action index for the pause icon.

public static final intPLAY

Action index for the play icon.

from ActionNO_ID
Constructors
publicPlayPauseAction(Context context)

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 PLAY

Deprecated: Use PlaybackControlsRow.PlayPauseAction.INDEX_PLAY

Action index for the play icon.

public static final int PAUSE

Deprecated: Use PlaybackControlsRow.PlayPauseAction.INDEX_PAUSE

Action index for the pause icon.

public static final int INDEX_PLAY

Action index for the play icon.

public static final int INDEX_PAUSE

Action index for the pause icon.

Constructors

public PlayPauseAction(Context context)

Constructor

Parameters:

context: Context used for loading resources.