public static enum SoundPlayer.StopReason extends Enum<SoundPlayer.StopReason>
| Enum Constant and Description |
|---|
END_OF_AUDIO
When the audio that should be played, was played completely
|
OTHER
Any other reason.
|
PLAYER_STOPPED
When the sound player was stopped via
SoundPlayer.stop(). |
STREAM_CLOSED
When the audio stream, the audio is played on was closed.
|
| Modifier and Type | Method and Description |
|---|---|
static SoundPlayer.StopReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SoundPlayer.StopReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoundPlayer.StopReason END_OF_AUDIO
public static final SoundPlayer.StopReason STREAM_CLOSED
public static final SoundPlayer.StopReason PLAYER_STOPPED
SoundPlayer.stop().public static final SoundPlayer.StopReason OTHER
public static SoundPlayer.StopReason[] values()
for (SoundPlayer.StopReason c : SoundPlayer.StopReason.values()) System.out.println(c);
public static SoundPlayer.StopReason 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 nullCopyright © 2018. All rights reserved.