Serializable, Comparable<AudioStreamInfo.StreamUsage>public static enum AudioStreamInfo.StreamUsage extends Enum<AudioStreamInfo.StreamUsage>
SystemCapability.Multimedia#AUDIO| 枚举常量 | 说明 |
|---|---|
STREAM_USAGE_ALARM |
Indicates that the streams are used for an alarm (such as a wake-up alarm).
|
STREAM_USAGE_ASSISTANCE_ACCESSIBILITY |
Indicates that the streams are used for improving accessibility with
a screen reader, for example.
|
STREAM_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE |
Indicates that the streams are used for driving or navigating directions.
|
STREAM_USAGE_ASSISTANCE_SONIFICATION |
Indicates that the streams are used for sonification such as user
interface sounds.
|
STREAM_USAGE_ASSISTANT |
Indicates that the streams are used for audio responses to user queries, audio instructions, or help
utterances.
|
STREAM_USAGE_GAME |
Indicates that the streams are used for game audio.
|
STREAM_USAGE_MEDIA |
Indicates that the streams are used for media, such as music or movie
soundtracks.
|
STREAM_USAGE_NOTIFICATION |
Indicates that the streams are used for notifications.
|
STREAM_USAGE_NOTIFICATION_COMMUNICATION_DELAYED |
Indicates that the streams are used for notifications for a
non-immediate type of communication, such as email.
|
STREAM_USAGE_NOTIFICATION_COMMUNICATION_INSTANT |
Indicates that the streams are used for notifications of instant
communications, such as instant messaging.
|
STREAM_USAGE_NOTIFICATION_COMMUNICATION_REQUEST |
Indicates that the streams are used for requests to enter or end a
communication, such as a VoIP calls or video conference.
|
STREAM_USAGE_NOTIFICATION_EVENT |
Indicates that the streams are used to attract users' attention,
such as a reminder or low battery warning.
|
STREAM_USAGE_NOTIFICATION_RINGTONE |
Indicates that the streams are used for ringtones.
|
STREAM_USAGE_TTS |
Indicates that the streams are used for text-to-speech.
|
STREAM_USAGE_UNKNOWN |
Indicates unknown stream usage.
|
STREAM_USAGE_VIRTUAL_SOURCE |
Indicates that the streams are used for feeding audio to the platform and replacing traditional audio
sources, such as audio capture devices.
|
STREAM_USAGE_VOICE_COMMUNICATION |
Indicates that the streams are used for voice communications, such as telephony
or VoIP.
|
STREAM_USAGE_VOICE_COMMUNICATION_SIGNALLING |
Indicates that the streams are used for in-call signaling, such as
a "busy" beep, or DTMF tones.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static AudioStreamInfo.StreamUsage |
getEnum(int value) |
Obtains an enum type from value.
|
int |
getValue() |
Obtains an enum value.
|
static AudioStreamInfo.StreamUsage |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static AudioStreamInfo.StreamUsage[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (AudioStreamInfo.StreamUsage c : AudioStreamInfo.StreamUsage.values()) System.out.println(c); |
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_UNKNOWN
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_MEDIA
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_VOICE_COMMUNICATION
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_VOICE_COMMUNICATION_SIGNALLING
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_ALARM
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_NOTIFICATION
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_NOTIFICATION_RINGTONE
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_NOTIFICATION_COMMUNICATION_REQUEST
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_NOTIFICATION_COMMUNICATION_INSTANT
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_NOTIFICATION_COMMUNICATION_DELAYED
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_NOTIFICATION_EVENT
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_ASSISTANCE_ACCESSIBILITY
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_ASSISTANCE_SONIFICATION
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_GAME
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_VIRTUAL_SOURCE
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_ASSISTANT
public static final AudioStreamInfo.StreamUsage STREAM_USAGE_TTS
public static AudioStreamInfo.StreamUsage[] values()
for (AudioStreamInfo.StreamUsage c : AudioStreamInfo.StreamUsage.values()) System.out.println(c);
public static AudioStreamInfo.StreamUsage valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
public static AudioStreamInfo.StreamUsage getEnum(int value)
value - Indicates the value.