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 ConstantDescription0: LAN type, indicating that the data is transmitted over a local area network.2: Mobile type, indicating that the data is transmitted over a mobile network.99: Unknown type, indicating that the path type is not recognized.1: WIFI type, indicating that the 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, indicating that the data is transmitted over a local area network. This type is typically used for high-speed, low-latency connections. -
MULTIPATH_TYPE_WIFI
1: WIFI type, indicating that the data is transmitted over a Wi-Fi network. This type is suitable for wireless connections with moderate latency. -
MULTIPATH_TYPE_MOBILE
2: Mobile type, indicating that the data is transmitted over a mobile network. This type is used for connections that may have higher latency and variability. -
MULTIPATH_TYPE_UNKNOWN
99: Unknown type, indicating that the path type is not recognized. This 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
-