Agora Java API Reference for Android

Static Public Member Functions | Public Attributes | List of all members
io.agora.rtm.RtmConstants.RtmConnectionState Enum Reference

## Static Public Member Functions
static int | getValue (RtmConnectionState state)
static RtmConnectionState | getEnum (int value)

## Public Attributes
| DISCONNECTED =(1)
| CONNECTING =(2)
| CONNECTED =(3)
| RECONNECTING =(4)
| FAILED =(5)

## Detailed Description

Connection states between rtm sdk and agora server.

## Member Data Documentation

## ◆ DISCONNECTED

io.agora.rtm.RtmConstants.RtmConnectionState.DISCONNECTED =(1)

1: The SDK is disconnected with server.

## ◆ CONNECTING

io.agora.rtm.RtmConstants.RtmConnectionState.CONNECTING =(2)

2: The SDK is connecting to the server.

## ◆ CONNECTED

io.agora.rtm.RtmConstants.RtmConnectionState.CONNECTED =(3)

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.

## ◆ RECONNECTING

io.agora.rtm.RtmConstants.RtmConnectionState.RECONNECTING =(4)

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

## ◆ FAILED

io.agora.rtm.RtmConstants.RtmConnectionState.FAILED =(5)

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