ConnectionState enum
{zh} * @detail keytype @brief SDK 与 RTC 服务器连接状态。
Values
- disconnected → const ConnectionState
-
@brief Disconnected for 12s, SDK will try to reconnect automatically.
- connecting → const ConnectionState
-
@brief The first request to connect to the server. Connecting.
- connected → const ConnectionState
-
@brief The first connection was successful.
- reconnecting → const ConnectionState
-
@brief The code includes the following status:
- The first connection is not successful for 10s. - The connection has been lost for 10s. Auto reconnecting. - reconnected → const ConnectionState
-
@brief Successful reconnection after disconnection.
- lost → const ConnectionState
-
@brief In status
CONNECTION_STATE_DISCONNECTEDfor more than 10s without a successful reconnection. SDK will still continue to try to reconnect. - failed → const ConnectionState
-
@brief Connection failure caused by abnormal state of the server. SDK will not automatically reconnect, please re-enter the room or contact technical support.
Properties
- $value → dynamic
-
final
- 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<
ConnectionState> - A constant List of the values in this enum, in order of their declaration.