Signaling (previously RTM) SDK v1.5.0 API Reference for Android
Public Attributes | List of all members
io.agora.rtm.RtmStatusCode.ChannelMessageError Interface Reference

Public Attributes

int  CHANNEL_MESSAGE_ERR_OK = 0
 
int  CHANNEL_MESSAGE_ERR_FAILURE = 1
 
int  CHANNEL_MESSAGE_ERR_TIMEOUT = 2
 
int  CHANNEL_MESSAGE_ERR_TOO_OFTEN = 3
 
int  CHANNEL_MESSAGE_ERR_INVALID_MESSAGE = 4
 
int  CHANNEL_MESSAGE_ERR_NOT_INITIALIZED = 101
 
int  CHANNEL_MESSAGE_ERR_USER_NOT_LOGGED_IN = 102
 

Member Data Documentation

◆ 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.