Package io.agora.rtc2
Enum Class Constants.MultipathType
- All Implemented Interfaces:
Serializable,Comparable<Constants.MultipathType>,Constable
- Enclosing class:
- Constants
- Since:
- 4.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription(0): LAN type, indicates data is transmitted over a local area network.(2): Mobile network type, indicates data is transmitted over a mobile network.(99): Unknown type, indicates an unrecognized path type.(1): Wi-Fi type, indicates data is transmitted over a Wi-Fi network. -
Method Summary
Modifier and TypeMethodDescriptionstatic Constants.MultipathTypefromInt(int v) intgetValue()static Constants.MultipathTypeReturns the enum constant of this class with the specified name.static Constants.MultipathType[]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
-
MULTIPATH_TYPE_LAN
(0): LAN type, indicates data is transmitted over a local area network. Suitable for high-speed, low-latency connections. -
MULTIPATH_TYPE_WIFI
(1): Wi-Fi type, indicates data is transmitted over a Wi-Fi network. Suitable for wireless connections with moderate latency. -
MULTIPATH_TYPE_MOBILE
(2): Mobile network type, indicates data is transmitted over a mobile network. Suitable for scenarios with higher latency and unstable connections. -
MULTIPATH_TYPE_UNKNOWN
(99): Unknown type, indicates an unrecognized path type. Can be used for error handling or fallback scenarios.
-
-
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() -
fromInt
-