ZegoRoomStateChangedReason enum

房间状态变化原因。

Inheritance
  • Object
  • Enum
  • ZegoRoomStateChangedReason

Constructors

ZegoRoomStateChangedReason()
const

Values

Logining → const ZegoRoomStateChangedReason

正在登录房间。当调用 loginRoom 登录房间或 switchRoom 切换到目标房间时,进入该状态,表示正在请求连接服务器。通常通过该状态进行应用界面的展示。

Logined → const ZegoRoomStateChangedReason

登录房间成功。当登录房间或切换房间成功后,进入该状态,表示登录房间已经成功,用户可以正常收到房间内的其他用户和所有流信息增删的回调通知。

LoginFailed → const ZegoRoomStateChangedReason

登录房间失败。当登录房间或切换房间失败后,进入该状态,表示登录房间或切换房间已经失败,例如 AppID 或 Token 不正确等。

Reconnecting → const ZegoRoomStateChangedReason

房间连接临时中断。如果因为网络质量不佳产生的中断,SDK 会进行内部重试。

Reconnected → const ZegoRoomStateChangedReason

房间重新连接成功。如果因为网络质量不佳产生的中断,SDK 会进行内部重试,重连成功后进入该状态。

ReconnectFailed → const ZegoRoomStateChangedReason

房间重新连接失败。如果因为网络质量不佳产生的中断,SDK 会进行内部重试,重连失败后进入该状态。

KickOut → const ZegoRoomStateChangedReason

被服务器踢出房间。例如有相同用户名在其他地方登录房间导致本端被踢出房间,会进入该状态。

Logout → const ZegoRoomStateChangedReason

登出房间成功。没有登录房间前默认为该状态,当调用 logoutRoom 登出房间成功或 switchRoom 内部登出当前房间成功后,进入该状态。

LogoutFailed → const ZegoRoomStateChangedReason

登出房间失败。当调用 logoutRoom 登出房间失败或 switchRoom 内部登出当前房间失败后,进入该状态。

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
index → int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

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.
[Logining, Logined, LoginFailed, Reconnecting, Reconnected, ReconnectFailed, KickOut, Logout, LogoutFailed]