Documentation
Real-time Messaging
API Reference
Agora RTM Java API Reference for Android
Agora RTM Java API Reference for Android
◆ LOGIN_ERR_OK
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_OK = 0 |
0: Login succeeds. No error occurs.
◆ LOGIN_ERR_UNKNOWN
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_UNKNOWN = 1 |
1: Login fails for reasons unknown.
◆ LOGIN_ERR_REJECTED
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_REJECTED = 2 |
2: Login is rejected by the server.
◆ LOGIN_ERR_INVALID_ARGUMENT
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_INVALID_ARGUMENT = 3 |
3: Invalid login arguments.
◆ LOGIN_ERR_INVALID_APP_ID
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_INVALID_APP_ID = 4 |
4: The App ID is invalid.
◆ LOGIN_ERR_INVALID_TOKEN
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_INVALID_TOKEN = 5 |
◆ LOGIN_ERR_TOKEN_EXPIRED
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_TOKEN_EXPIRED = 6 |
6: The token has expired, and hence login is rejected.
◆ LOGIN_ERR_NOT_AUTHORIZED
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_NOT_AUTHORIZED = 7 |
7: Authentication of the RTM Token fails.
◆ LOGIN_ERR_ALREADY_LOGIN
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_ALREADY_LOGIN = 8 |
8: The user has already logged in or is logging in the Agora RTM system, or the user has not called the logout method to leave the CONNECTION_STATE_ABORTED state.
◆ LOGIN_ERR_TIMEOUT
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_TIMEOUT = 9 |
9: The login times out. The current timeout is set as 12 seconds. You need to log in again.
◆ LOGIN_ERR_TOO_OFTEN
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_TOO_OFTEN = 10 |
10: The call frequency of the login method exceeds the limit of two queries per second.
◆ LOGIN_ERR_NOT_INITIALIZED
int io.agora.rtm.RtmStatusCode.LoginError.LOGIN_ERR_NOT_INITIALIZED = 101 |
101: The SDK is not initialized.