|int||CONNECTION_STATE_DISCONNECTED = 1|
|int||CONNECTION_STATE_CONNECTING = 2|
|int||CONNECTION_STATE_CONNECTED = 3|
|int||CONNECTION_STATE_RECONNECTING = 4|
|int||CONNECTION_STATE_ABORTED = 5|
|int io.agora.rtm.RtmStatusCode.ConnectionState.CONNECTION_STATE_DISCONNECTED = 1|
|int io.agora.rtm.RtmStatusCode.ConnectionState.CONNECTION_STATE_CONNECTING = 2|
|int io.agora.rtm.RtmStatusCode.ConnectionState.CONNECTION_STATE_CONNECTED = 3|
3: The SDK has logged in the Agora RTM system.
onConnectionStateChangedcallback, and switches to the CONNECTION_STATE_RECONNECTING state.
onConnectionStateChangedcallback and switches to the CONNECTION_STATE_ABORTED state.
logoutmethod successfully logs out of the Agora RTM system, the SDK triggers the
onConnectionStateChangedcallback and switches to the CONNECTION_STATE_DISCONNECTED state.
|int io.agora.rtm.RtmStatusCode.ConnectionState.CONNECTION_STATE_RECONNECTING = 4|
4: The connection state between the SDK and the Agora RTM system is interrupted due to network issues, and the SDK keeps re-logging in the Agora RTM system.
onConnectionStateChangedcallback and switches to the CONNECTION_STATE_CONNECTED state. The SDK automatically adds the user back to the channel(s) he or she was in when the connection was interrupted, and synchronizes the local user's attributes with the server.
|int io.agora.rtm.RtmStatusCode.ConnectionState.CONNECTION_STATE_ABORTED = 5|