ByteRTCConnectionState enum

Inheritance
Available extensions

Values

ByteRTCConnectionStateDisconnected → const ByteRTCConnectionState

@brief Disconnected for 12s, SDK will try to reconnect automatically.

ByteRTCConnectionStateConnecting → const ByteRTCConnectionState

@brief The first request to connect to the server. Connecting.

ByteRTCConnectionStateConnected → const ByteRTCConnectionState

@brief The first connection was successful.

ByteRTCConnectionStateReconnecting → const ByteRTCConnectionState

@brief The code includes the following status:
- The first connection is not successful for 10s. - The connection has been lost for 10s. Auto reconnecting.

ByteRTCConnectionStateReconnected → const ByteRTCConnectionState

@brief Successful reconnection after disconnection.

ByteRTCConnectionStateLost → const ByteRTCConnectionState

@brief In status ByteRTCConnectionStateDisconnected for more than 10s without a successful reconnection. SDK will still continue to try to reconnect.

ByteRTCConnectionStateFailed → const ByteRTCConnectionState

@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<ByteRTCConnectionState>
A constant List of the values in this enum, in order of their declaration.