public static enum MediaStatus.RepeatMode extends Enum<MediaStatus.RepeatMode>
| Enum Constant and Description |
|---|
REPEAT_ALL
All the items in the queue will be played indefinitely, when the last
item is played it will play the first item again
|
REPEAT_ALL_AND_SHUFFLE
All the items in the queue will be played indefinitely, when the last
item is played it will play the first item again (the list will be
shuffled by the receiver first)
|
REPEAT_OFF
When the queue is completed the media session is terminated
|
REPEAT_SINGLE
The current item will be played repeatedly
|
| Modifier and Type | Method and Description |
|---|---|
static MediaStatus.RepeatMode |
typeOf(String repeatMode)
Parses the specified string and returns the corresponding
MediaStatus.RepeatMode, or null if no match could be found. |
static MediaStatus.RepeatMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaStatus.RepeatMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaStatus.RepeatMode REPEAT_OFF
public static final MediaStatus.RepeatMode REPEAT_ALL
public static final MediaStatus.RepeatMode REPEAT_SINGLE
public static final MediaStatus.RepeatMode REPEAT_ALL_AND_SHUFFLE
public static MediaStatus.RepeatMode[] values()
for (MediaStatus.RepeatMode c : MediaStatus.RepeatMode.values()) System.out.println(c);
public static MediaStatus.RepeatMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nullable public static MediaStatus.RepeatMode typeOf(String repeatMode)
MediaStatus.RepeatMode, or null if no match could be found.repeatMode - the string to parse.MediaStatus.RepeatMode or null.Copyright © 2022. All rights reserved.