Package io.agora.rtc2
Enum Class Constants.AudioSourceType
- All Implemented Interfaces:
Serializable,Comparable<Constants.AudioSourceType>,Constable
- Enclosing class:
- Constants
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription1: Custom audio stream.3: System audio stream captured during screen sharing.2: Media player.0: (Default) Microphone.4: Audio of mixed stream from the local client.6: Mixed audio streams from all users in the current channel.5: Audio stream from a specified remote user.100: An unknown audio source. -
Method Summary
Modifier and TypeMethodDescriptionstatic Constants.AudioSourceTypefromInt(int v) intgetValue()static intstatic Constants.AudioSourceTypeReturns the enum constant of this class with the specified name.static Constants.AudioSourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
AUDIO_SOURCE_MICROPHONE
0: (Default) Microphone. -
AUDIO_SOURCE_CUSTOM
1: Custom audio stream. -
AUDIO_SOURCE_MEDIA_PLAYER
2: Media player. -
AUDIO_SOURCE_LOOPBACK_RECORDING
3: System audio stream captured during screen sharing. -
AUDIO_SOURCE_MIXED_STREAM
4: Audio of mixed stream from the local client. -
AUDIO_SOURCE_REMOTE_USER
5: Audio stream from a specified remote user. -
AUDIO_SOURCE_REMOTE_CHANNEL
6: Mixed audio streams from all users in the current channel. -
AUDIO_SOURCE_UNKNOWN
100: An unknown audio source.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
getValue
-
fromInt
-