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

PlaybackControlsRow.PlayPauseAction

public static class PlaybackControlsRow.PlayPauseAction
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.PlayPauseAction


An action displaying icons for play and pause.

Summary

Constants

int INDEX_PAUSE

Action index for the pause icon.

int INDEX_PLAY

Action index for the play icon.

int PAUSE

This constant was deprecated in API level 26.1.0. Use INDEX_PAUSE

int PLAY

This constant was deprecated in API level 26.1.0. Use INDEX_PLAY

Inherited constants

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

Public constructors

PlaybackControlsRow.PlayPauseAction(Context context)

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_PAUSE

added in version 26.1.0
int INDEX_PAUSE

Action index for the pause icon.

Constant Value: 1 (0x00000001)

INDEX_PLAY

added in version 26.1.0
int INDEX_PLAY

Action index for the play icon.

Constant Value: 0 (0x00000000)

PAUSE

added in version 22.1.0
int PAUSE

This constant was deprecated in API level 26.1.0.
Use INDEX_PAUSE

Action index for the pause icon.

Constant Value: 1 (0x00000001)

PLAY

added in version 22.1.0
int PLAY

This constant was deprecated in API level 26.1.0.
Use INDEX_PLAY

Action index for the play icon.

Constant Value: 0 (0x00000000)

Public constructors

PlaybackControlsRow.PlayPauseAction

added in version 22.1.0
PlaybackControlsRow.PlayPauseAction (Context context)

Constructor

Parameters
context Context: Context used for loading resources.