Serializable, Comparable<AudioStreamInfo.StreamType>public static enum AudioStreamInfo.StreamType extends Enum<AudioStreamInfo.StreamType>
SystemCapability.Multimedia#AUDIO| 枚举常量 | 说明 |
|---|---|
STREAM_TYPE_ACCESSIBILITY |
Indicates the streams for accessibility prompts.
|
STREAM_TYPE_ALARM |
Indicates the streams for alarms.
|
STREAM_TYPE_DTMF |
Indicates the streams for DTMF tones.
|
STREAM_TYPE_MUSIC |
Indicates the streams for music.
|
STREAM_TYPE_NOTIFICATION |
Indicates the streams for notifications.
|
STREAM_TYPE_RING |
Indicates the streams for the phone ring and message alerts.
|
STREAM_TYPE_SYSTEM |
Indicates the streams for system sounds.
|
STREAM_TYPE_VOICE_CALL |
Indicates the streams for calls.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getValue() |
Obtains an enum value.
|
static AudioStreamInfo.StreamType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static AudioStreamInfo.StreamType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (AudioStreamInfo.StreamType c : AudioStreamInfo.StreamType.values()) System.out.println(c); |
public static final AudioStreamInfo.StreamType STREAM_TYPE_VOICE_CALL
public static final AudioStreamInfo.StreamType STREAM_TYPE_SYSTEM
public static final AudioStreamInfo.StreamType STREAM_TYPE_RING
public static final AudioStreamInfo.StreamType STREAM_TYPE_MUSIC
public static final AudioStreamInfo.StreamType STREAM_TYPE_ALARM
public static final AudioStreamInfo.StreamType STREAM_TYPE_NOTIFICATION
public static final AudioStreamInfo.StreamType STREAM_TYPE_DTMF
public static final AudioStreamInfo.StreamType STREAM_TYPE_ACCESSIBILITY
public static AudioStreamInfo.StreamType[] values()
for (AudioStreamInfo.StreamType c : AudioStreamInfo.StreamType.values()) System.out.println(c);
public static AudioStreamInfo.StreamType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()