public static enum AudioDevice.Type extends java.lang.Enum<AudioDevice.Type>
Enum Constant and Description |
---|
AuxLine
Telephony.
|
Bluetooth
Speaker.
|
BluetoothA2DP
Bluetooth.
|
Earpiece
Microphone.
|
GenericUsb
AuxLine.
|
Headphones
Headset.
|
Headset
GenericUsb.
|
Microphone
Unknown.
|
Speaker
Earpiece.
|
Telephony
Bluetooth A2DP.
|
Unknown
|
Modifier and Type | Field and Description |
---|---|
protected int |
mValue |
Modifier and Type | Method and Description |
---|---|
static AudioDevice.Type |
fromInt(int value) |
int |
toInt() |
static AudioDevice.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AudioDevice.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AudioDevice.Type Unknown
public static final AudioDevice.Type Microphone
public static final AudioDevice.Type Earpiece
public static final AudioDevice.Type Speaker
public static final AudioDevice.Type Bluetooth
public static final AudioDevice.Type BluetoothA2DP
public static final AudioDevice.Type Telephony
public static final AudioDevice.Type AuxLine
public static final AudioDevice.Type GenericUsb
public static final AudioDevice.Type Headset
public static final AudioDevice.Type Headphones
public static AudioDevice.Type[] values()
for (AudioDevice.Type c : AudioDevice.Type.values()) System.out.println(c);
public static AudioDevice.Type 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 nullpublic static AudioDevice.Type fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()