Agora Java API Reference for Android
Static Public Member Functions | Public Attributes | List of all members
io.agora.rtm.RtmConstants.RtmLinkState Enum Reference

Static Public Member Functions

static int getValue (RtmLinkState state)
 
static RtmLinkState getEnum (int value)
 

Public Attributes

 IDLE =(0)
 
 CONNECTING =(1)
 
 CONNECTED =(2)
 
 DISCONNECTED =(3)
 
 SUSPENDED =(4)
 
 FAILED =(5)
 

Detailed Description

Rtm link state.

Member Data Documentation

◆ IDLE

io.agora.rtm.RtmConstants.RtmLinkState.IDLE =(0)

0: The initial state.

◆ CONNECTING

io.agora.rtm.RtmConstants.RtmLinkState.CONNECTING =(1)

1: The SDK is connecting to the server.

◆ CONNECTED

io.agora.rtm.RtmConstants.RtmLinkState.CONNECTED =(2)

2: The SDK has connected to the server.

◆ DISCONNECTED

io.agora.rtm.RtmConstants.RtmLinkState.DISCONNECTED =(3)

3: The SDK is disconnected from the server.

◆ SUSPENDED

io.agora.rtm.RtmConstants.RtmLinkState.SUSPENDED =(4)

4: The SDK link is suspended.

◆ FAILED

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

5: The SDK is failed to connect to the server.