Documentation
Real-time Messaging
API Reference
Agora RTM Java API Reference for Android
Agora RTM Java API Reference for Android
◆ PEER_SUBSCRIPTION_STATUS_ERR_OK
int io.agora.rtm.RtmStatusCode.PeerSubscriptionStatusError.PEER_SUBSCRIPTION_STATUS_ERR_OK = 0 |
0: The method call succeeds.
◆ PEER_SUBSCRIPTION_STATUS_ERR_FAILURE
int io.agora.rtm.RtmStatusCode.PeerSubscriptionStatusError.PEER_SUBSCRIPTION_STATUS_ERR_FAILURE = 1 |
1: The method call fails.
◆ PEER_SUBSCRIPTION_STATUS_ERR_INVALID_ARGUMENT
int io.agora.rtm.RtmStatusCode.PeerSubscriptionStatusError.PEER_SUBSCRIPTION_STATUS_ERR_INVALID_ARGUMENT = 2 |
2: The method call fails. The argument is invalid.
◆ PEER_SUBSCRIPTION_STATUS_ERR_REJECTED
int io.agora.rtm.RtmStatusCode.PeerSubscriptionStatusError.PEER_SUBSCRIPTION_STATUS_ERR_REJECTED = 3 |
3: RESERVED FOR FUTURE USE
◆ PEER_SUBSCRIPTION_STATUS_ERR_TIMEOUT
int io.agora.rtm.RtmStatusCode.PeerSubscriptionStatusError.PEER_SUBSCRIPTION_STATUS_ERR_TIMEOUT = 4 |
4: The SDK fails to receive a response from the server within 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.
◆ PEER_SUBSCRIPTION_STATUS_ERR_TOO_OFTEN
int io.agora.rtm.RtmStatusCode.PeerSubscriptionStatusError.PEER_SUBSCRIPTION_STATUS_ERR_TOO_OFTEN = 5 |
5: The method call frequency of this method exceeds the limit of 10 queries every five seconds.
◆ PEER_SUBSCRIPTION_STATUS_ERR_OVERFLOW
int io.agora.rtm.RtmStatusCode.PeerSubscriptionStatusError.PEER_SUBSCRIPTION_STATUS_ERR_OVERFLOW = 6 |
6: The number of peers, to whom you subscribe, exceeds the limit of 512.
◆ PEER_SUBSCRIPTION_STATUS_ERR_NOT_INITIALIZED
int io.agora.rtm.RtmStatusCode.PeerSubscriptionStatusError.PEER_SUBSCRIPTION_STATUS_ERR_NOT_INITIALIZED = 101 |
101: The SDK is not initialized.
◆ PEER_SUBSCRIPTION_STATUS_ERR_USER_NOT_LOGGED_IN
int io.agora.rtm.RtmStatusCode.PeerSubscriptionStatusError.PEER_SUBSCRIPTION_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.