Package im.zego.zegoexpress.constants
Enum ZegoRoomState
- java.lang.Object
-
- java.lang.Enum<ZegoRoomState>
-
- im.zego.zegoexpress.constants.ZegoRoomState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoRoomState>
public enum ZegoRoomState extends java.lang.Enum<ZegoRoomState>
Room state.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTED
The status that is successfully connected.CONNECTING
The state that the connection is being requested.DISCONNECTED
Unconnected state, enter this state before logging in and after exiting the room.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoRoomState
getZegoRoomState(int value)
int
value()
static ZegoRoomState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoRoomState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISCONNECTED
public static final ZegoRoomState DISCONNECTED
Unconnected state, enter this state before logging in and after exiting the room. If there is a steady state abnormality in the process of logging in to the room, such as AppID or Token are incorrect, or if the same user name is logged in elsewhere and the local end is KickOut, it will enter this state.
-
CONNECTING
public static final ZegoRoomState CONNECTING
The state that the connection is being requested. It will enter this state after successful execution login room function. The display of the UI is usually performed using this state. If the connection is interrupted due to poor network quality, the SDK will perform an internal retry and will return to the requesting connection status.
-
CONNECTED
public static final ZegoRoomState CONNECTED
The status that is successfully connected. Entering this status indicates that the login to the room has been successful. The user can receive the callback notification of the user and the stream information in the room.
-
-
Method Detail
-
values
public static ZegoRoomState[] 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 (ZegoRoomState c : ZegoRoomState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoRoomState 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()
-
getZegoRoomState
public static ZegoRoomState getZegoRoomState(int value)
-
-