Documentation
Real-time Messaging
API Reference
Agora RTM Java API Reference for Android
Agora RTM Java API Reference for Android
◆ QUERY_PEERS_ONLINE_STATUS_ERR_OK
int io.agora.rtm.RtmStatusCode.QueryPeersOnlineStatusError.QUERY_PEERS_ONLINE_STATUS_ERR_OK = 0 |
0: The method call succeeds.
◆ QUERY_PEERS_ONLINE_STATUS_ERR_FAILURE
int io.agora.rtm.RtmStatusCode.QueryPeersOnlineStatusError.QUERY_PEERS_ONLINE_STATUS_ERR_FAILURE = 1 |
1: The method call fails.
◆ QUERY_PEERS_ONLINE_STATUS_ERR_INVALID_ARGUMENT
int io.agora.rtm.RtmStatusCode.QueryPeersOnlineStatusError.QUERY_PEERS_ONLINE_STATUS_ERR_INVALID_ARGUMENT = 2 |
2: The method call fails. The argument is invalid.
◆ QUERY_PEERS_ONLINE_STATUS_ERR_REJECTED
int io.agora.rtm.RtmStatusCode.QueryPeersOnlineStatusError.QUERY_PEERS_ONLINE_STATUS_ERR_REJECTED = 3 |
3: RESERVED FOR FUTURE USE
◆ QUERY_PEERS_ONLINE_STATUS_ERR_TIMEOUT
int io.agora.rtm.RtmStatusCode.QueryPeersOnlineStatusError.QUERY_PEERS_ONLINE_STATUS_ERR_TIMEOUT = 4 |
4: The SDK has not received a response from the server for 10 seconds. The current timeout is set as 10 seconds. Possible reasons: The user is in the CONNECTION_STATE_ABORTED or CONNECTION_STATE_RECONNECTING state.
◆ QUERY_PEERS_ONLINE_STATUS_ERR_TOO_OFTEN
int io.agora.rtm.RtmStatusCode.QueryPeersOnlineStatusError.QUERY_PEERS_ONLINE_STATUS_ERR_TOO_OFTEN = 5 |
5: The call frequency of this method exceeds the limit of (RTM SDK for Android Java) 10 calls every five seconds or (RTM SDK for Linux Java) 100 calls every five seconds.
◆ QUERY_PEERS_ONLINE_STATUS_ERR_NOT_INITIALIZED
int io.agora.rtm.RtmStatusCode.QueryPeersOnlineStatusError.QUERY_PEERS_ONLINE_STATUS_ERR_NOT_INITIALIZED = 101 |
101: The SDK is not initialized.
◆ QUERY_PEERS_ONLINE_STATUS_ERR_USER_NOT_LOGGED_IN
int io.agora.rtm.RtmStatusCode.QueryPeersOnlineStatusError.QUERY_PEERS_ONLINE_STATUS_ERR_USER_NOT_LOGGED_IN = 102 |
102: The user does not call the login method, or the method call of login does not succeed before querying peer the online status.