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 |
Gets the channel ID.
|
abstract |
Retrieves the member list of the channel.
Note You can call this method at a maximum speed of five queries every two seconds.
resultCallback | A ResultCallback object.
|
|
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 |
Releases all resources of the current channel.
Note: Do not call this method in any of your callbacks.
|
abstract |
Sends a message to all users in the channel.
Note You can send messages (channel and peer-to-peer messages taken together) at a maximum speed of 60 queries per second.
message | The message to be sent. See RtmMessage. |
resultCallback | A ResultCallback object.
|
|
abstract |
Sends a message to all users in the channel.
Note You can send messages (channel and peer-to-peer messages taken together) at a maximum speed of 60 queries per second.
message | The message to be sent. See RtmMessage. |
options | The option of message to be send. See SendMessageOptions. |
resultCallback | A ResultCallback object.
|