Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

PlayPauseAction

open class PlayPauseAction : PlaybackControlsRow.MultiAction
kotlin.Any
   ↳ androidx.leanback.widget.Action
   ↳ androidx.leanback.widget.PlaybackControlsRow.MultiAction
   ↳ androidx.leanback.widget.PlaybackControlsRow.PlayPauseAction

An action displaying icons for play and pause.

Summary

Constants
static Int

Action index for the play icon.

static Int

Action index for the pause icon.

static Int

Action index for the play icon.

static Int

Action index for the pause icon.

Inherited constants
Public constructors
<init>(context: Context!)

Constructor

Inherited functions

Constants

PLAY

static val PLAY: Int

Action index for the play icon.

Value: 0

PAUSE

static val PAUSE: Int

Action index for the pause icon.

Value: 1

INDEX_PLAY

static val INDEX_PLAY: Int

Action index for the play icon.

Value: 0

INDEX_PAUSE

static val INDEX_PAUSE: Int

Action index for the pause icon.

Value: 1

Public constructors

<init>

PlayPauseAction(context: Context!)

Constructor

Parameters
context Context!: Context used for loading resources.