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

PlaybackControlsRow.PlayPauseAction

public static class PlaybackControlsRow.PlayPauseAction
extends PlaybackControlsRow.MultiAction

java.lang.Object
   ↳ androidx.leanback.widget.Action
     ↳ androidx.leanback.widget.PlaybackControlsRow.MultiAction
       ↳ androidx.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 is deprecated. Use INDEX_PAUSE

int PLAY

This constant is deprecated. Use INDEX_PLAY

Inherited constants

Public constructors

PlaybackControlsRow.PlayPauseAction(Context context)

Constructor

Inherited methods

Constants

INDEX_PAUSE

int INDEX_PAUSE

Action index for the pause icon.

Constant Value: 1 (0x00000001)

INDEX_PLAY

int INDEX_PLAY

Action index for the play icon.

Constant Value: 0 (0x00000000)

PAUSE

int PAUSE

This constant is deprecated.
Use INDEX_PAUSE

Action index for the pause icon.

Constant Value: 1 (0x00000001)

PLAY

int PLAY

This constant is deprecated.
Use INDEX_PLAY

Action index for the play icon.

Constant Value: 0 (0x00000000)

Public constructors

PlaybackControlsRow.PlayPauseAction

PlaybackControlsRow.PlayPauseAction (Context context)

Constructor

Parameters
context Context: Context used for loading resources.