Inherits IDisposable.
◆ RtmChannel()
◆ Dispose()
void agora_rtm.RtmChannel.Dispose |
( |
| ) |
|
|
inline |
Releases all resources used by the RtmChannel instance.
◆ GetId()
int agora_rtm.RtmChannel.GetId |
( |
| ) |
|
|
inline |
Retrieves the channel ID.
- Returns
- The channel ID of the channel.
◆ GetMembers()
int agora_rtm.RtmChannel.GetMembers |
( |
| ) |
|
|
inline |
Retrieves a member list of the channel. The OnGetMembersHandler callback returns the result of this method call.
- 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.
- Returns
-
◆ Join()
int agora_rtm.RtmChannel.Join |
( |
| ) |
|
|
inline |
Joins a channel.
- Note
- You can 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 JOIN_CHANNEL_ERR error code.
- Returns
-
◆ Leave()
int agora_rtm.RtmChannel.Leave |
( |
| ) |
|
|
inline |
Leaves a channel.
- If this method call succeeds:
- If this method call fails, the local user receives the OnLeaveHandler callback with an error code. See LEAVE_CHANNEL_ERR for the error codes.
- Returns
-
◆ SendMessage() [1/2]
int agora_rtm.RtmChannel.SendMessage |
( |
IMessage |
message | ) |
|
|
inline |
Agora does not recommend using this method to send a channel message. Use SendMessage instead. If this method call succeeds:
- Parameters
-
message | The message to be sent. See IMessage. |
- Returns
-
◆ SendMessage() [2/2]
Allows a channel member to send a message to all members in the channel. If this method call succeeds:
- The OnSendMessageResultHandler callback returns the result.
- All remote users in the channel receive the OnMessageReceivedHandler callback.
- Note
- You can send messages, including peer-to-peer and channel messages, at a maximum frequency of 180 calls every three seconds.
- Parameters
-
- Returns
-
The documentation for this class was generated from the following file: