public static enum MediaStatus.PlayerState extends Enum<MediaStatus.PlayerState>
| Enum Constant and Description |
|---|
BUFFERING
The player is in BUFFERING state
|
IDLE
The player is in IDLE state
|
PAUSED
The player is in PAUSED state
|
PLAYING
The player is in PLAYING state
|
| Modifier and Type | Method and Description |
|---|---|
static MediaStatus.PlayerState |
typeOf(String playerState)
Parses the specified string and returns the corresponding
MediaStatus.PlayerState, or null if no match could be found. |
static MediaStatus.PlayerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaStatus.PlayerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaStatus.PlayerState IDLE
public static final MediaStatus.PlayerState PLAYING
public static final MediaStatus.PlayerState PAUSED
public static final MediaStatus.PlayerState BUFFERING
public static MediaStatus.PlayerState[] values()
for (MediaStatus.PlayerState c : MediaStatus.PlayerState.values()) System.out.println(c);
public static MediaStatus.PlayerState 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.PlayerState typeOf(String playerState)
MediaStatus.PlayerState, or null if no match could be found.playerState - the string to parse.MediaStatus.PlayerState or null.Copyright © 2022. All rights reserved.