ConnectionStateType enum Null safety

Connection states.

Constants

Connected → const ConnectionStateType

The SDK is connected to Agora's edge server and joins a channel. You can now publish or subscribe to a media stream in the channel. If the connection to the channel is lost because, for example, the network is down or switched, the SDK automatically tries to reconnect and triggers:

@JsonValue(3)
const ConnectionStateType(2)
Connecting → const ConnectionStateType

The SDK is connecting to Agora's edge server.

@JsonValue(2)
const ConnectionStateType(1)
Disconnected → const ConnectionStateType

The SDK is disconnected from Agora's edge server.

@JsonValue(1)
const ConnectionStateType(0)
Failed → const ConnectionStateType

The SDK fails to connect to Agora's edge server or join the channel. You must call RtcEngine.leaveChannel to leave this state, and call RtcEngine.joinChannel again to rejoin the channel.

If the SDK is banned from joining the channel by Agora’s edge server (through the RESTful API), the SDK triggers the RtcEngineEventHandler.connectionStateChanged callbacks.

@JsonValue(5)
const ConnectionStateType(4)
Reconnecting → const ConnectionStateType

The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues.

@JsonValue(4)
const ConnectionStateType(3)
values → const List<ConnectionStateType>

A constant List of the values in this enum, in order of their declaration.

const List<ConnectionStateType>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited