Package io.agora.rtc2
Enum Class Constants.AudioSourceType
- All Implemented Interfaces:
Serializable,Comparable<Constants.AudioSourceType>,Constable
- Enclosing class:
- Constants
Audio source types definition.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAudio generated by the customer.Audio of loopback recording.Audio of media player.Audio captured by the microphone.Audio of mixed stream in local client.Remote audio received of per channel from network.Remote audio received of per user from network.Not define. -
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
Audio captured by the microphone. -
AUDIO_SOURCE_CUSTOM
Audio generated by the customer. -
AUDIO_SOURCE_MEDIA_PLAYER
Audio of media player. -
AUDIO_SOURCE_LOOPBACK_RECORDING
Audio of loopback recording. -
AUDIO_SOURCE_MIXED_STREAM
Audio of mixed stream in local client. -
AUDIO_SOURCE_REMOTE_USER
Remote audio received of per user from network. -
AUDIO_SOURCE_REMOTE_CHANNEL
Remote audio received of per channel from network. -
AUDIO_SOURCE_UNKNOWN
Not define.
-
-
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
-