ZegoRoomStateChangedReason enum
Room state change reason.
Values
- Logining → const ZegoRoomStateChangedReason
-
Logging in to the room. When calling
loginRoom
to log in to the room orswitchRoom
to switch to the target room, it will enter this state, indicating that it is requesting to connect to the server. The application interface is usually displayed through this state. - Logined → const ZegoRoomStateChangedReason
-
Log in to the room successfully. When the room is successfully logged in or switched, it will enter this state, indicating that the login to the room has been successful, and users can normally receive callback notifications of other users in the room and all stream information additions and deletions.
- LoginFailed → const ZegoRoomStateChangedReason
-
Failed to log in to the room. When the login or switch room fails, it will enter this state, indicating that the login or switch room has failed, for example, AppID or Token is incorrect, etc.
- Reconnecting → const ZegoRoomStateChangedReason
-
The room connection is temporarily interrupted. If the interruption occurs due to poor network quality, the SDK will retry internally.
- Reconnected → const ZegoRoomStateChangedReason
-
The room 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.
- ReconnectFailed → const ZegoRoomStateChangedReason
-
The room 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.
- KickOut → const ZegoRoomStateChangedReason
-
Kicked out of the room by the server. For example, if you log in to the room with the same user name in other places, and the local end is kicked out of the room, it will enter this state.
- Logout → const ZegoRoomStateChangedReason
-
Logout of the room is successful. It is in this state by default before logging into the room. When calling
logoutRoom
to log out of the room successfully orswitchRoom
to log out of the current room successfully, it will enter this state. - LogoutFailed → const ZegoRoomStateChangedReason
-
Failed to log out of the room. Enter this state when calling
logoutRoom
fails to log out of the room orswitchRoom
fails to log out of the current room internally.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ZegoRoomStateChangedReason> - A constant List of the values in this enum, in order of their declaration.