Package im.zego.zegoexpress.constants
Enum ZegoTrafficControlFocusOnMode
- java.lang.Object
-
- java.lang.Enum<ZegoTrafficControlFocusOnMode>
-
- im.zego.zegoexpress.constants.ZegoTrafficControlFocusOnMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoTrafficControlFocusOnMode>
public enum ZegoTrafficControlFocusOnMode extends java.lang.Enum<ZegoTrafficControlFocusOnMode>
Factors that trigger traffic control
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ZEGO_TRAFFIC_CONTROL_FOUNS_ON_LOCAL_ONLY
Focus only on the local networkZEGO_TRAFFIC_CONTROL_FOUNS_ON_REMOTE
Pay attention to the local network, but also take into account the remote network, currently only effective in the 1v1 scenario
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoTrafficControlFocusOnMode
getZegoTrafficControlFocusOnMode(int value)
int
value()
static ZegoTrafficControlFocusOnMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoTrafficControlFocusOnMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ZEGO_TRAFFIC_CONTROL_FOUNS_ON_LOCAL_ONLY
public static final ZegoTrafficControlFocusOnMode ZEGO_TRAFFIC_CONTROL_FOUNS_ON_LOCAL_ONLY
Focus only on the local network
-
ZEGO_TRAFFIC_CONTROL_FOUNS_ON_REMOTE
public static final ZegoTrafficControlFocusOnMode ZEGO_TRAFFIC_CONTROL_FOUNS_ON_REMOTE
Pay attention to the local network, but also take into account the remote network, currently only effective in the 1v1 scenario
-
-
Method Detail
-
values
public static ZegoTrafficControlFocusOnMode[] 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 (ZegoTrafficControlFocusOnMode c : ZegoTrafficControlFocusOnMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoTrafficControlFocusOnMode 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()
-
getZegoTrafficControlFocusOnMode
public static ZegoTrafficControlFocusOnMode getZegoTrafficControlFocusOnMode(int value)
-
-