public static enum PlayerApi.StreamType extends java.lang.Enum<PlayerApi.StreamType>
ALARM allows playback through the audio stream for alarms AudioManager.STREAM_ALARM
User interactions such as skips and initiating playback of another context will make
playback default back to the audio stream for media AudioManager.STREAM_MUSIC
.
Enum Constant and Description |
---|
ALARM |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
static PlayerApi.StreamType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PlayerApi.StreamType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerApi.StreamType ALARM
public static PlayerApi.StreamType[] values()
for (PlayerApi.StreamType c : PlayerApi.StreamType.values()) System.out.println(c);
public static PlayerApi.StreamType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null