Serializable, Comparable<AudioStreamInfo.ContentType>public static enum AudioStreamInfo.ContentType extends Enum<AudioStreamInfo.ContentType>
SystemCapability.Multimedia#AUDIO| 枚举常量 | 说明 |
|---|---|
CONTENT_TYPE_MOVIE |
Indicates that the content type is a soundtrack, typically accompanying
a movie or TV program.
|
CONTENT_TYPE_MUSIC |
Indicates that the content type is music.
|
CONTENT_TYPE_SONIFICATION |
Indicates that the content type is a sound used to accompany a user
action, such as a sound effect expressing a key click, or an event, such as the
type of a sound for a bonus being received in a game.
|
CONTENT_TYPE_SPEECH |
Indicates that the content type is speech.
|
CONTENT_TYPE_UNKNOWN |
Indicates an unknown or undefined content type.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static AudioStreamInfo.ContentType |
getEnum(int value) |
Obtains an enum type from value.
|
int |
getValue() |
Obtains an enum value.
|
static AudioStreamInfo.ContentType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static AudioStreamInfo.ContentType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (AudioStreamInfo.ContentType c : AudioStreamInfo.ContentType.values()) System.out.println(c); |
public static final AudioStreamInfo.ContentType CONTENT_TYPE_UNKNOWN
public static final AudioStreamInfo.ContentType CONTENT_TYPE_SPEECH
public static final AudioStreamInfo.ContentType CONTENT_TYPE_MUSIC
public static final AudioStreamInfo.ContentType CONTENT_TYPE_MOVIE
public static final AudioStreamInfo.ContentType CONTENT_TYPE_SONIFICATION
public static AudioStreamInfo.ContentType[] values()
for (AudioStreamInfo.ContentType c : AudioStreamInfo.ContentType.values()) System.out.println(c);
public static AudioStreamInfo.ContentType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
public static AudioStreamInfo.ContentType getEnum(int value)
value - Indicates the value.