Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

ShuffleAction

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

An action for displaying a shuffle icon.

Summary

Constants

static Int

Action index for shuffle is off

static Int

Action index for shuffle is on.

static Int

Action index for shuffle is off.

static Int

Action index for shuffle is on.

Inherited constants

Public constructors

<init>(context: Context!)

Constructor

<init>(context: Context!, highlightColor: Int)

Constructor

Inherited functions

Constants

INDEX_OFF

static val INDEX_OFF: Int

Action index for shuffle is off

Value: 0

INDEX_ON

static val INDEX_ON: Int

Action index for shuffle is on.

Value: 1

OFF

static val OFF: Int

Deprecated: Use INDEX_OFF

Action index for shuffle is off.

Value: 0

ON

static val ON: Int

Deprecated: Use INDEX_ON

Action index for shuffle is on.

Value: 1

Public constructors

<init>

ShuffleAction(context: Context!)

Constructor

Parameters
context Context!: Context used for loading resources.

<init>

ShuffleAction(context: Context!, highlightColor: Int)

Constructor

Parameters
context Context!: Context used for loading resources.
highlightColor Context!: Color for the highlighted icon state.