Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
Android 0.0.0 Developer Preview
belongs to Maven artifact androidx.leanback:leanback:1.1.0-alpha01

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 was deprecated in API level 0.0.0. Use INDEX_PAUSE

int PLAY

This constant was deprecated in API level 0.0.0. Use INDEX_PLAY

Inherited constants

Public constructors

PlaybackControlsRow.PlayPauseAction(Context context)

Constructor

Inherited methods

Constants

INDEX_PAUSE

public static final int INDEX_PAUSE

Action index for the pause icon.

Constant Value: 1 (0x00000001)

INDEX_PLAY

public static final int INDEX_PLAY

Action index for the play icon.

Constant Value: 0 (0x00000000)

PAUSE

public static final int PAUSE

This constant was deprecated in API level 0.0.0.
Use INDEX_PAUSE

Action index for the pause icon.

Constant Value: 1 (0x00000001)

PLAY

public static final int PLAY

This constant was deprecated in API level 0.0.0.
Use INDEX_PLAY

Action index for the play icon.

Constant Value: 0 (0x00000000)

Public constructors

PlaybackControlsRow.PlayPauseAction

public PlaybackControlsRow.PlayPauseAction (Context context)

Constructor

Parameters
context Context: Context used for loading resources.