Agora Java API Reference for Android
Static Public Attributes | List of all members
io.agora.rtm2.IRtmEventHandler.RtmConnectionState Class Reference

Static Public Attributes

static final int RTM_CONNECTION_STATE_DISCONNECTED = 1
 
static final int RTM_CONNECTION_STATE_CONNECTING = 2
 
static final int RTM_CONNECTION_STATE_CONNECTED = 3
 
static final int RTM_CONNECTION_STATE_RECONNECTING = 4
 
static final int RTM_CONNECTION_STATE_FAILED = 5
 

Detailed Description

Connection states between rtm sdk and agora server.

Member Data Documentation

◆ RTM_CONNECTION_STATE_DISCONNECTED

final int io.agora.rtm2.IRtmEventHandler.RtmConnectionState.RTM_CONNECTION_STATE_DISCONNECTED = 1
static

1: The SDK is disconnected with server.

◆ RTM_CONNECTION_STATE_CONNECTING

final int io.agora.rtm2.IRtmEventHandler.RtmConnectionState.RTM_CONNECTION_STATE_CONNECTING = 2
static

2: The SDK is connecting to the server.

◆ RTM_CONNECTION_STATE_CONNECTED

final int io.agora.rtm2.IRtmEventHandler.RtmConnectionState.RTM_CONNECTION_STATE_CONNECTED = 3
static

3: The SDK is connected to the server and has joined a channel. You can now publish or subscribe to a track in the channel.

◆ RTM_CONNECTION_STATE_RECONNECTING

final int io.agora.rtm2.IRtmEventHandler.RtmConnectionState.RTM_CONNECTION_STATE_RECONNECTING = 4
static

4: The SDK keeps rejoining the channel after being disconnected from the channel, probably because of network issues.

◆ RTM_CONNECTION_STATE_FAILED

final int io.agora.rtm2.IRtmEventHandler.RtmConnectionState.RTM_CONNECTION_STATE_FAILED = 5
static

5: The SDK fails to connect to the server or join the channel.