Documentation
Real-time Messaging
API Reference
Agora RTM Java API Reference for Android
Agora RTM Java API Reference for Android
◆ CONNECTION_CHANGE_REASON_LOGIN
int io.agora.rtm.RtmStatusCode.ConnectionChangeReason.CONNECTION_CHANGE_REASON_LOGIN = 1 |
1: The SDK is logging in the Agora RTM system.
◆ CONNECTION_CHANGE_REASON_LOGIN_SUCCESS
int io.agora.rtm.RtmStatusCode.ConnectionChangeReason.CONNECTION_CHANGE_REASON_LOGIN_SUCCESS = 2 |
2: The SDK has logged in the Agora RTM system.
◆ CONNECTION_CHANGE_REASON_LOGIN_FAILURE
int io.agora.rtm.RtmStatusCode.ConnectionChangeReason.CONNECTION_CHANGE_REASON_LOGIN_FAILURE = 3 |
3: The SDK fails to log in the Agora RTM system.
◆ CONNECTION_CHANGE_REASON_LOGIN_TIMEOUT
int io.agora.rtm.RtmStatusCode.ConnectionChangeReason.CONNECTION_CHANGE_REASON_LOGIN_TIMEOUT = 4 |
4: The login has timed out, and the SDK stops logging in. The current login timeout is set as 12 seconds.
◆ CONNECTION_CHANGE_REASON_INTERRUPTED
int io.agora.rtm.RtmStatusCode.ConnectionChangeReason.CONNECTION_CHANGE_REASON_INTERRUPTED = 5 |
5: The connection between the SDK and the Agora RTM system is interrupted for more than four seconds.
◆ CONNECTION_CHANGE_REASON_LOGOUT
int io.agora.rtm.RtmStatusCode.ConnectionChangeReason.CONNECTION_CHANGE_REASON_LOGOUT = 6 |
6: The user has called the logout() method to log out of the Agora RTM system.
◆ CONNECTION_CHANGE_REASON_BANNED_BY_SERVER
int io.agora.rtm.RtmStatusCode.ConnectionChangeReason.CONNECTION_CHANGE_REASON_BANNED_BY_SERVER = 7 |
7: Login is banned by the Agora RTM server.
◆ CONNECTION_CHANGE_REASON_REMOTE_LOGIN
int io.agora.rtm.RtmStatusCode.ConnectionChangeReason.CONNECTION_CHANGE_REASON_REMOTE_LOGIN = 8 |
8: Another instance has logged in the Agora RTM system with the same user ID.