ZegoRoomState Constants Reference
Declared in | ZegoExpressDefines.h |
---|
ZegoRoomState
Room state.
Definition
typedef NS_ENUM(NSUInteger, ZegoRoomState ) {
ZegoRoomStateDisconnected = 0,
ZegoRoomStateConnecting = 1,
ZegoRoomStateConnected = 2,
};
Constants
ZegoRoomStateDisconnected
-
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.
Declared In
ZegoExpressDefines.h
. ZegoRoomStateConnecting
-
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.
Declared In
ZegoExpressDefines.h
. ZegoRoomStateConnected
-
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.
Declared In
ZegoExpressDefines.h
.
Declared In
ZegoExpressDefines.h