Package im.zego.zegoexpress.constants
Enum ZegoAudioRoute
- java.lang.Object
-
- java.lang.Enum<ZegoAudioRoute>
-
- im.zego.zegoexpress.constants.ZegoAudioRoute
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoAudioRoute>
public enum ZegoAudioRoute extends java.lang.Enum<ZegoAudioRoute>
Audio route
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoAudioRoute
getZegoAudioRoute(int value)
int
value()
static ZegoAudioRoute
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoAudioRoute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPEAKER
public static final ZegoAudioRoute SPEAKER
Speaker
-
HEADPHONE
public static final ZegoAudioRoute HEADPHONE
Headphone
-
BLUETOOTH
public static final ZegoAudioRoute BLUETOOTH
Bluetooth device
-
RECEIVER
public static final ZegoAudioRoute RECEIVER
Receiver
-
EXTERNAL_USB
public static final ZegoAudioRoute EXTERNAL_USB
External USB audio device
-
AIR_PLAY
public static final ZegoAudioRoute AIR_PLAY
Apple AirPlay
-
-
Method Detail
-
values
public static ZegoAudioRoute[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ZegoAudioRoute c : ZegoAudioRoute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoAudioRoute valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
getZegoAudioRoute
public static ZegoAudioRoute getZegoAudioRoute(int value)
-
-