Signaling (previously RTM) SDK v1.5.0 API Reference for Android
|
Public Attributes |
|
int | PEER_MESSAGE_ERR_OK = 0 |
int | PEER_MESSAGE_ERR_FAILURE = 1 |
int | PEER_MESSAGE_ERR_TIMEOUT = 2 |
int | PEER_MESSAGE_ERR_PEER_UNREACHABLE = 3 |
int | PEER_MESSAGE_ERR_CACHED_BY_SERVER = 4 |
int | PEER_MESSAGE_ERR_TOO_OFTEN = 5 |
int | PEER_MESSAGE_ERR_INVALID_USERID = 6 |
int | PEER_MESSAGE_ERR_INVALID_MESSAGE = 7 |
int | PEER_MESSAGE_ERR_IMCOMPATIBLE_MESSAGE = 8 |
int | PEER_MESSAGE_ERR_NOT_INITIALIZED = 101 |
int | PEER_MESSAGE_ERR_USER_NOT_LOGGED_IN = 102 |
int io.agora.rtm.RtmStatusCode.PeerMessageError.PEER_MESSAGE_ERR_OK = 0 |
0: The specified user receives the peer-to-peer message.
int io.agora.rtm.RtmStatusCode.PeerMessageError.PEER_MESSAGE_ERR_FAILURE = 1 |
1: The user fails to send the peer-to-peer message.
int io.agora.rtm.RtmStatusCode.PeerMessageError.PEER_MESSAGE_ERR_TIMEOUT = 2 |
2: A timeout occurs when sending the peer-to-peer message. The current timeout is set as 10 seconds. Possible reasons: The user is in the CONNECTION_STATE_ABORTED or CONNECTION_STATE_RECONNECTING state.
int io.agora.rtm.RtmStatusCode.PeerMessageError.PEER_MESSAGE_ERR_PEER_UNREACHABLE = 3 |
3: The user is offline and has not received the peer-to-peer message.
int io.agora.rtm.RtmStatusCode.PeerMessageError.PEER_MESSAGE_ERR_CACHED_BY_SERVER = 4 |
4: The receiver is offline and does not receive this offline peer-to-peer message, but the server has cached it and will send it to the specified user once the receiver is back online.
int io.agora.rtm.RtmStatusCode.PeerMessageError.PEER_MESSAGE_ERR_TOO_OFTEN = 5 |
5: The method call frequency exceeds the limit of (RTM SDK for Android Java) 180 calls every 3 seconds or (RTM SDK for Linux Java) 1500 calls every three seconds, with channel messages and peer-to-peer messages taken together.
int io.agora.rtm.RtmStatusCode.PeerMessageError.PEER_MESSAGE_ERR_INVALID_USERID = 6 |
6: The user ID is invalid.
int io.agora.rtm.RtmStatusCode.PeerMessageError.PEER_MESSAGE_ERR_INVALID_MESSAGE = 7 |
7: The message is null or exceeds 32 KB in length.
int io.agora.rtm.RtmStatusCode.PeerMessageError.PEER_MESSAGE_ERR_IMCOMPATIBLE_MESSAGE = 8 |
8: The message receiver‘s SDK is of an earlier version and hence cannot recognize this message.
int io.agora.rtm.RtmStatusCode.PeerMessageError.PEER_MESSAGE_ERR_NOT_INITIALIZED = 101 |
101: The SDK is not initialized.