Agora Java API Reference for Android

Static Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.RtcConnection.CONNECTION_STATE_TYPE Enum Reference

## Static Public Member Functions
static int | getValue (CONNECTION_STATE_TYPE type)

## Public Attributes
| CONNECTION_STATE_NOT_INITIALIZED =(0)
| CONNECTION_STATE_DISCONNECTED =(1)
| CONNECTION_STATE_CONNECTING =(2)
| CONNECTION_STATE_CONNECTED =(3)
| CONNECTION_STATE_RECONNECTING =(4)
| CONNECTION_STATE_FAILED =(5)

## Detailed Description

Connection state types.

## Member Data Documentation

## ◆ CONNECTION_STATE_NOT_INITIALIZED

io.agora.rtc2.RtcConnection.CONNECTION_STATE_TYPE.CONNECTION_STATE_NOT_INITIALIZED =(0)

0: The SDK has not been initialized.

## ◆ CONNECTION_STATE_DISCONNECTED

io.agora.rtc2.RtcConnection.CONNECTION_STATE_TYPE.CONNECTION_STATE_DISCONNECTED =(1)

1: The SDK is disconnected from Agora's edge server.

## ◆ CONNECTION_STATE_CONNECTING

io.agora.rtc2.RtcConnection.CONNECTION_STATE_TYPE.CONNECTION_STATE_CONNECTING =(2)

2: The SDK is connecting to Agora's edge server.

## ◆ CONNECTION_STATE_CONNECTED

io.agora.rtc2.RtcConnection.CONNECTION_STATE_TYPE.CONNECTION_STATE_CONNECTED =(3)

3: The SDK is connected to Agora's edge server and has joined a channel. You can now publish or subscribe to a media stream in the channel.

## ◆ CONNECTION_STATE_RECONNECTING

io.agora.rtc2.RtcConnection.CONNECTION_STATE_TYPE.CONNECTION_STATE_RECONNECTING =(4)

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

## ◆ CONNECTION_STATE_FAILED

io.agora.rtc2.RtcConnection.CONNECTION_STATE_TYPE.CONNECTION_STATE_FAILED =(5)

5: The SDK fails to connect to Agora's edge server or join the channel.