lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0

PlaybackControlsRow.RepeatAction

public static class PlaybackControlsRow.RepeatAction
extends PlaybackControlsRow.MultiAction

java.lang.Object
   ↳ 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

int ALL

This constant was deprecated in API level 1.0.0. Use INDEX_ALL

int INDEX_ALL

Action index for the repeat-all icon.

int INDEX_NONE

Action index for the repeat-none icon.

int INDEX_ONE

Action index for the repeat-one icon.

int NONE

This constant was deprecated in API level 1.0.0. Use INDEX_NONE

int ONE

This constant was deprecated in API level 1.0.0. Use INDEX_ONE

Inherited constants

Public constructors

PlaybackControlsRow.RepeatAction(Context context)

Constructor

PlaybackControlsRow.RepeatAction(Context context, int highlightColor)

Constructor

PlaybackControlsRow.RepeatAction(Context context, int repeatAllColor, int repeatOneColor)

Constructor

Inherited methods

Constants

ALL

added in version 1.0.0
public static final int ALL

This constant was deprecated in API level 1.0.0.
Use INDEX_ALL

Action index for the repeat-all icon.

Constant Value: 1 (0x00000001)

INDEX_ALL

added in version 1.0.0
public static final int INDEX_ALL

Action index for the repeat-all icon.

Constant Value: 1 (0x00000001)

INDEX_NONE

added in version 1.0.0
public static final int INDEX_NONE

Action index for the repeat-none icon.

Constant Value: 0 (0x00000000)

INDEX_ONE

added in version 1.0.0
public static final int INDEX_ONE

Action index for the repeat-one icon.

Constant Value: 2 (0x00000002)

NONE

added in version 1.0.0
public static final int NONE

This constant was deprecated in API level 1.0.0.
Use INDEX_NONE

Action index for the repeat-none icon.

Constant Value: 0 (0x00000000)

ONE

added in version 1.0.0
public static final int ONE

This constant was deprecated in API level 1.0.0.
Use INDEX_ONE

Action index for the repeat-one icon.

Constant Value: 2 (0x00000002)

Public constructors

PlaybackControlsRow.RepeatAction

added in version 1.0.0
public PlaybackControlsRow.RepeatAction (Context context)

Constructor

Parameters
context Context: Context used for loading resources.

PlaybackControlsRow.RepeatAction

added in version 1.0.0
public PlaybackControlsRow.RepeatAction (Context context, 
                int highlightColor)

Constructor

Parameters
context Context: Context used for loading resources

highlightColor int: Color to display the repeat-all and repeat0one icons.

PlaybackControlsRow.RepeatAction

added in version 1.0.0
public PlaybackControlsRow.RepeatAction (Context context, 
                int repeatAllColor, 
                int repeatOneColor)

Constructor

Parameters
context Context: Context used for loading resources

repeatAllColor int: Color to display the repeat-all icon.

repeatOneColor int: Color to display the repeat-one icon.