ZegoSceneState Constants Reference
Declared in | ZegoExpressDefines.h |
---|
ZegoSceneState
Range scene state change reason.
Definition
typedef NS_ENUM(NSUInteger, ZegoSceneState ) {
ZegoSceneStateLogining = 0,
ZegoSceneStateLogined = 1,
ZegoSceneStateLoginFailed = 2,
ZegoSceneStateReconnecting = 3,
ZegoSceneStateReconnected = 4,
ZegoSceneStateReconnectFailed = 5,
ZegoSceneStateKickOut = 6,
ZegoSceneStateLogout = 7,
};
Constants
ZegoSceneStateLogining
-
Logging in to the scene. When calling [loginScene] to log in to the scene, it will enter this state, indicating that it is requesting to connect to the server. The application interface is usually displayed through this state.
Declared In
ZegoExpressDefines.h
. ZegoSceneStateLogined
-
Log in to the scene successfully. When the scene is successfully logged in, it will enter this state, indicating that the login to the scene has been successful, and users can normally use the range scene capabilities.
Declared In
ZegoExpressDefines.h
. ZegoSceneStateLoginFailed
-
Failed to log in to the scene. When the login fails, it will enter this state, indicating that the login scene has failed, for example, AppID or Token is incorrect, etc.
Declared In
ZegoExpressDefines.h
. ZegoSceneStateReconnecting
-
The scene connection is temporarily interrupted. If the interruption occurs due to poor network quality, the SDK will retry internally.
Declared In
ZegoExpressDefines.h
. ZegoSceneStateReconnected
-
The scene is successfully reconnected. If there is an interruption due to poor network quality, the SDK will retry internally, and enter this state after successful reconnection.
Declared In
ZegoExpressDefines.h
. ZegoSceneStateReconnectFailed
-
The scene fails to reconnect. If there is an interruption due to poor network quality, the SDK will retry internally, and enter this state after the reconnection fails.
Declared In
ZegoExpressDefines.h
. ZegoSceneStateKickOut
-
Kicked out of the scene by the server. For example, if you log in to the scene with the same user name in other places, and the local end is kicked out of the scene, it will enter this state.
Declared In
ZegoExpressDefines.h
. ZegoSceneStateLogout
-
Logout of the scene is successful. It is in this state by default before logging into the scene. When calling [logoutScene] to log out of the scene successfully, it will enter this state.
Declared In
ZegoExpressDefines.h
.
Declared In
ZegoExpressDefines.h