Agora Java API Reference for Android
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
io.agora.rte.scene.AgoraRteConnectionChangedReason Enum Reference

Public Member Functions

int getValue ()
 

Static Public Member Functions

static AgoraRteConnectionChangedReason valueOf (int v)
 

Public Attributes

 CONNECTION_CHANGED_CONNECTING =(0)
 
 CONNECTION_CHANGED_JOIN_SUCCESS =(1)
 
 CONNECTION_CHANGED_INTERRUPTED =(2)
 
 CONNECTION_CHANGED_BANNED_BY_SERVER =(3)
 
 CONNECTION_CHANGED_JOIN_FAILED =(4)
 
 CONNECTION_CHANGED_LEAVE_CHANNEL =(5)
 
 CONNECTION_CHANGED_INVALID_APP_ID =(6)
 
 CONNECTION_CHANGED_INVALID_CHANNEL_NAME =(7)
 
 CONNECTION_CHANGED_INVALID_TOKEN =(8)
 
 CONNECTION_CHANGED_TOKEN_EXPIRED =(9)
 
 CONNECTION_CHANGED_REJECTED_BY_SERVER =(10)
 
 CONNECTION_CHANGED_SETTING_PROXY_SERVER =(11)
 
 CONNECTION_CHANGED_RENEW_TOKEN =(12)
 
 CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED =(13)
 
 CONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT =(14)
 
 CONNECTION_CHANGED_REJOIN_SUCCESS =(15)
 
 CONNECTION_CHANGED_LOST =(16)
 
 CONNECTION_CHANGED_ECHO_TEST =(17)
 
 CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED_BY_USER =(18)
 
int value
 

Member Data Documentation

◆ CONNECTION_CHANGED_CONNECTING

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_CONNECTING =(0)

0: The SDK is connecting to the server.

◆ CONNECTION_CHANGED_JOIN_SUCCESS

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_JOIN_SUCCESS =(1)

1: The SDK has joined the channel successfully.

◆ CONNECTION_CHANGED_INTERRUPTED

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_INTERRUPTED =(2)

2: The connection between the SDK and the server is interrupted.

◆ CONNECTION_CHANGED_BANNED_BY_SERVER

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_BANNED_BY_SERVER =(3)

3: The connection between the SDK and the server is banned by the server.

◆ CONNECTION_CHANGED_JOIN_FAILED

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_JOIN_FAILED =(4)

4: The SDK fails to join the channel for more than 20 minutes and stops reconnecting to the channel.

◆ CONNECTION_CHANGED_LEAVE_CHANNEL

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_LEAVE_CHANNEL =(5)

5: The SDK has left the channel.

◆ CONNECTION_CHANGED_INVALID_APP_ID

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_INVALID_APP_ID =(6)

6: The connection fails because the App ID is not valid.

◆ CONNECTION_CHANGED_INVALID_CHANNEL_NAME

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_INVALID_CHANNEL_NAME =(7)

7: The connection fails because the channel name is not valid.

◆ CONNECTION_CHANGED_INVALID_TOKEN

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_INVALID_TOKEN =(8)

8: The connection fails because the token is not valid.

◆ CONNECTION_CHANGED_TOKEN_EXPIRED

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_TOKEN_EXPIRED =(9)

9: The connection fails because the token has expired.

◆ CONNECTION_CHANGED_REJECTED_BY_SERVER

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_REJECTED_BY_SERVER =(10)

10: The connection is rejected by the server.

◆ CONNECTION_CHANGED_SETTING_PROXY_SERVER

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_SETTING_PROXY_SERVER =(11)

11: The connection changes to reconnecting because the SDK has set a proxy server.

◆ CONNECTION_CHANGED_RENEW_TOKEN

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_RENEW_TOKEN =(12)

12: When the connection state changes because the app has renewed the token.

◆ CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED =(13)

13: The IP Address of the app has changed. A change in the network type or IP/Port changes the IP address of the app.

◆ CONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT =(14)

14: A timeout occurs for the keep-alive of the connection between the SDK and the server.

◆ CONNECTION_CHANGED_REJOIN_SUCCESS

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_REJOIN_SUCCESS =(15)

15: The SDK has rejoined the channel successfully.

◆ CONNECTION_CHANGED_LOST

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_LOST =(16)

16: The connection between the SDK and the server is lost.

◆ CONNECTION_CHANGED_ECHO_TEST

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_ECHO_TEST =(17)

17: The change of connection state is caused by echo test.

◆ CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED_BY_USER

io.agora.rte.scene.AgoraRteConnectionChangedReason.CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED_BY_USER =(18)

18: The local IP Address is changed by user.