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 pause icon.

static Int

Action index for the play icon.

static Int

Action index for the pause icon.

static Int

Action index for the play icon.

Inherited constants

Public constructors

<init>(context: Context!)

Constructor

Inherited functions

Constants

INDEX_PAUSE

static val INDEX_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

PAUSE

static val PAUSE: Int

Deprecated: Use INDEX_PAUSE

Action index for the pause icon.

Value: 1

PLAY

static val PLAY: Int

Deprecated: Use INDEX_PLAY

Action index for the play icon.

Value: 0

Public constructors

<init>

PlayPauseAction(context: Context!)

Constructor

Parameters
context Context!: Context used for loading resources.