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.
message | The message to be sent. See RtmMessage. |
resultCallback | A ResultCallback object.
|
|
abstract |
Sends a message to all users in the channel.
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.