Signaling (previously RTM) SDK v1.5.0 API Reference for Linux (Java)
|
Public Attributes |
|
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 |
1: The initial state. The SDK is disconnected from the Agora RTM system.
When the user calls the
login
method, the SDK starts to log in the Agora RTM system, triggers the
onConnectionStateChanged
callback, and switches to the CONNECTION_STATE_CONNECTING state.
int io.agora.rtm.RtmStatusCode.ConnectionState.CONNECTION_STATE_CONNECTING = 2 |
2: The SDK is logging in the Agora RTM system.
onConnectionStateChanged
callback, and switches to the CONNECTION_STATE_CONNECTED state.
onConnectionStateChanged
callback and switches to the CONNECTION_STATE_DISCONNECTED state.
int io.agora.rtm.RtmStatusCode.ConnectionState.CONNECTION_STATE_CONNECTED = 3 |
3: The SDK has logged in the Agora RTM system.
onConnectionStateChanged
callback, and switches to the CONNECTION_STATE_RECONNECTING state.
onConnectionStateChanged
callback and switches to the CONNECTION_STATE_ABORTED state.
logout
method successfully logs out of the Agora RTM system, the SDK triggers the
onConnectionStateChanged
callback 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.
onConnectionStateChanged
callback 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 |