Documentation
Real-time Messaging
API Reference
Agora RTM Java API Reference for Android
Agora RTM Java API Reference for Android
◆ CHANNEL_MESSAGE_ERR_OK
int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_OK = 0 |
0: The server receives the channel message.
◆ CHANNEL_MESSAGE_ERR_FAILURE
int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_FAILURE = 1 |
1: The user fails to send the channel message.
◆ CHANNEL_MESSAGE_ERR_TIMEOUT
int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_TIMEOUT = 2 |
2: The SDK does not receive a response from the server in 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.
◆ CHANNEL_MESSAGE_ERR_TOO_OFTEN
int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_TOO_OFTEN = 3 |
3: The method call frequency exceeds the limit of 180 calls every three seconds (channel and peer messages taken together).
◆ CHANNEL_MESSAGE_ERR_INVALID_MESSAGE
int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_INVALID_MESSAGE = 4 |
4: The message is null or exceeds 32 KB in length.
◆ CHANNEL_MESSAGE_ERR_NOT_INITIALIZED
int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_NOT_INITIALIZED = 101 |
101: The SDK is not initialized.
◆ CHANNEL_MESSAGE_ERR_USER_NOT_LOGGED_IN
int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_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 sending out a channel message.