public static enum AudioPlayer.Mode extends Enum<AudioPlayer.Mode>
Enum Constant and Description |
---|
PAUSE
The audio player is paused
|
PLAY
The audio player is playing
|
STOP
The audio player is stopped
|
Modifier and Type | Method and Description |
---|---|
static AudioPlayer.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AudioPlayer.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AudioPlayer.Mode PLAY
public static final AudioPlayer.Mode PAUSE
public static final AudioPlayer.Mode STOP
public static AudioPlayer.Mode[] values()
for (AudioPlayer.Mode c : AudioPlayer.Mode.values()) System.out.println(c);
public static AudioPlayer.Mode 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