public static enum ShadowMediaPlayer.State extends Enum<ShadowMediaPlayer.State>
Possible states for the media player to be in. These states are as defined in the documentation for MediaPlayer
.
Enum Constant and Description |
---|
END |
ERROR |
IDLE |
INITIALIZED |
PAUSED |
PLAYBACK_COMPLETED |
PREPARED |
PREPARING |
STARTED |
STOPPED |
Modifier and Type | Method and Description |
---|---|
static ShadowMediaPlayer.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShadowMediaPlayer.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShadowMediaPlayer.State IDLE
public static final ShadowMediaPlayer.State INITIALIZED
public static final ShadowMediaPlayer.State PREPARING
public static final ShadowMediaPlayer.State PREPARED
public static final ShadowMediaPlayer.State STARTED
public static final ShadowMediaPlayer.State STOPPED
public static final ShadowMediaPlayer.State PAUSED
public static final ShadowMediaPlayer.State PLAYBACK_COMPLETED
public static final ShadowMediaPlayer.State END
public static final ShadowMediaPlayer.State ERROR
public static ShadowMediaPlayer.State[] values()
for (ShadowMediaPlayer.State c : ShadowMediaPlayer.State.values()) System.out.println(c);
public static ShadowMediaPlayer.State 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