Signaling (previously RTM) SDK v1.5.0 API Reference for Android
|
Public Member Functions |
|
abstract void | join (ResultCallback< Void > resultCallback) |
abstract void | leave (ResultCallback< Void > resultCallback) |
abstract void | sendMessage (RtmMessage message, ResultCallback< Void > resultCallback) |
abstract void | sendMessage (RtmMessage message, SendMessageOptions options, ResultCallback< Void > resultCallback) |
abstract void | getMembers (ResultCallback< List< RtmChannelMember > > resultCallback) |
abstract String | getId () |
abstract void | release () |
Agora RTM channel methods.
|
abstract |
Joins a channel.
Note You can only join a maximum of 20 RTM channels at the same time. When the
number of the channels you join exceeds the limit, you receive the
AgoraRtmJoinChannelErrorFailure
error code.
resultCallback |
A
ResultCallback
object.
|
|
abstract |
Leaves a channel.
resultCallback |
A
ResultCallback
object.
|
|
abstract |
Sends a message to all users in the channel.
Note For the RTM SDK for Android Java, you can send messages (channel and peer-to-peer messages taken together) at a maximum frequency of 180 calls every 3 seconds. For the RTM SDK for Linux Java, you can send messages (channel and peer-to-peer messages taken together) at a maximum frequency of 1500 calls every three seconds.
message |
The message to be sent. See
RtmMessage .
|
resultCallback |
A
ResultCallback
object.
|
|
abstract |
Sends a message to all users in the channel.
Note For the RTM SDK for Android Java, you can send messages (channel and peer-to-peer messages taken together) at a maximum frequency of 180 calls every 3 seconds. For the RTM SDK for Linux Java, you can send messages (channel and peer-to-peer messages taken together) at a maximum frequency of 1500 calls every three seconds.
message |
The message to be sent. See
RtmMessage .
|
options |
The option of message to be send. See
SendMessageOptions .
|
resultCallback |
A
ResultCallback
object.
|
|
abstract |
Retrieves the member list of the channel.
Note You can call this method at a maximum frequency of five calls every two seconds. This method returns a maximum of 512 members. If the number of channel members exceed 512, the method returns 512 members randomly.
resultCallback |
A
ResultCallback
object.
|
|
abstract |
Gets the channel ID.
|
abstract |
Releases all resources of the current channel.
Note: Do not call this method in any of your callbacks.