public static enum MediaStatus.IdleReason extends Enum<MediaStatus.IdleReason>
MediaStatus.PlayerState.IDLE state.| Enum Constant and Description |
|---|
CANCELLED
A sender requested to stop playback using the
STOP command |
COMPLETED
Non-API, not supported by Google devices.
|
ERROR
The media was interrupted due to an error, this could happen if, for
example, the player could not download media due to networking errors
|
FINISHED
The media playback completed
|
INTERRUPTED
A sender requested playing a different media using the
LOAD
command |
| Modifier and Type | Method and Description |
|---|---|
static MediaStatus.IdleReason |
typeOf(String idleReason)
Parses the specified string and returns the corresponding
MediaStatus.IdleReason, or null if no match could be found. |
static MediaStatus.IdleReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaStatus.IdleReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaStatus.IdleReason CANCELLED
STOP commandpublic static final MediaStatus.IdleReason INTERRUPTED
LOAD
commandpublic static final MediaStatus.IdleReason FINISHED
public static final MediaStatus.IdleReason ERROR
public static final MediaStatus.IdleReason COMPLETED
public static MediaStatus.IdleReason[] values()
for (MediaStatus.IdleReason c : MediaStatus.IdleReason.values()) System.out.println(c);
public static MediaStatus.IdleReason 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.IdleReason typeOf(String idleReason)
MediaStatus.IdleReason, or null if no match could be found.idleReason - the string to parse.MediaStatus.IdleReason or null.Copyright © 2022. All rights reserved.