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

RepeatAction

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

An action for displaying three repeat states: none, one, or all.

Summary

Constants

static Int

Action index for the repeat-all icon.

static Int

Action index for the repeat-all icon.

static Int

Action index for the repeat-none icon.

static Int

Action index for the repeat-one icon.

static Int

Action index for the repeat-none icon.

static Int

Action index for the repeat-one icon.

Inherited constants

Public constructors

<init>(context: Context!)

Constructor

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

Constructor

<init>(context: Context!, repeatAllColor: Int, repeatOneColor: Int)

Constructor

Inherited functions

Constants

ALL

static val ALL: Int

Deprecated: Use INDEX_ALL

Action index for the repeat-all icon.

Value: 1

INDEX_ALL

static val INDEX_ALL: Int

Action index for the repeat-all icon.

Value: 1

INDEX_NONE

static val INDEX_NONE: Int

Action index for the repeat-none icon.

Value: 0

INDEX_ONE

static val INDEX_ONE: Int

Action index for the repeat-one icon.

Value: 2

NONE

static val NONE: Int

Deprecated: Use INDEX_NONE

Action index for the repeat-none icon.

Value: 0

ONE

static val ONE: Int

Deprecated: Use INDEX_ONE

Action index for the repeat-one icon.

Value: 2

Public constructors

<init>

RepeatAction(context: Context!)

Constructor

Parameters
context Context!: Context used for loading resources.

<init>

RepeatAction(context: Context!, highlightColor: Int)

Constructor

Parameters
context Context!: Context used for loading resources
highlightColor Context!: Color to display the repeat-all and repeat0one icons.

<init>

RepeatAction(context: Context!, repeatAllColor: Int, repeatOneColor: Int)

Constructor

Parameters
context Context!: Context used for loading resources
repeatAllColor Context!: Color to display the repeat-all icon.
repeatOneColor Context!: Color to display the repeat-one icon.