|
delegate void | OnJoinSuccessHandler (int id) |
|
delegate void | OnJoinFailureHandler (int id, JOIN_CHANNEL_ERR errorCode) |
|
delegate void | OnLeaveHandler (int id, LEAVE_CHANNEL_ERR errorCode) |
|
delegate void | OnMessageReceivedHandler (int id, string userId, TextMessage message) |
|
delegate void | OnImageMessageReceivedHandler (int id, string userId, ImageMessage message) |
|
delegate void | OnFileMessageReceivedHandler (int id, string userId, FileMessage message) |
|
delegate void | OnSendMessageResultHandler (int id, Int64 messageId, CHANNEL_MESSAGE_ERR_CODE errorCode) |
|
delegate void | OnMemberJoinedHandler (int id, RtmChannelMember member) |
|
delegate void | OnMemberLeftHandler (int id, RtmChannelMember member) |
|
delegate void | OnGetMembersHandler (int id, RtmChannelMember[] members, int userCount, GET_MEMBERS_ERR errorCode) |
|
delegate void | OnAttributesUpdatedHandler (int id, RtmChannelAttribute[] attributesList, int numberOfAttributes) |
|
delegate void | OnMemberCountUpdatedHandler (int id, int memberCount) |
|
| RtmChannelEventHandler () |
|
void | Release () |
|
◆ RtmChannelEventHandler()
agora_rtm.RtmChannelEventHandler.RtmChannelEventHandler |
( |
| ) |
|
|
inline |
◆ OnAttributesUpdatedHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnAttributesUpdatedHandler |
( |
int |
id, |
|
|
RtmChannelAttribute[] |
attributesList, |
|
|
int |
numberOfAttributes |
|
) |
| |
Occurs when channel attributes are updated, and returns all attributes of the channel.
- Note
- This callback is enabled only when the user, who updates the attributes of the channel, sets enableNotificationToChannelMembers as
true
. Also note that this flag is valid only within the current channel attribute method call.
- Parameters
-
id | the ID of the RtmChannelEventHandler |
attributesList | All attribute of this channel. |
numberOfAttributes | The total number of the channel attributes. |
◆ OnFileMessageReceivedHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnFileMessageReceivedHandler |
( |
int |
id, |
|
|
string |
userId, |
|
|
FileMessage |
message |
|
) |
| |
Occurs when receiving a channel file message.
- Deprecated:
- This callback is deprecated. Agora recommends that you do not use it.
- Parameters
-
◆ OnGetMembersHandler()
Returns the result of the GetMembers method call. When the method call succeeds, the SDK returns the member list of the channel.
- Note
- Parameters
-
◆ OnImageMessageReceivedHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnImageMessageReceivedHandler |
( |
int |
id, |
|
|
string |
userId, |
|
|
ImageMessage |
message |
|
) |
| |
Occurs when receiving a channel image message.
- Deprecated:
- This callback is deprecated. Agora recommends that you do not use it.
- Parameters
-
◆ OnJoinFailureHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnJoinFailureHandler |
( |
int |
id, |
|
|
JOIN_CHANNEL_ERR |
errorCode |
|
) |
| |
Occurs when failing to join a channel. The local user receives this callback when the Join method call fails.
- Parameters
-
◆ OnJoinSuccessHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnJoinSuccessHandler |
( |
int |
id | ) |
|
Occurs when successfully joining a channel. When the local user calls the Join method and successfully joins the channel:
- The SDK triggers this callback;
- All remote users in the channel receive the OnMemberJoinedHandler callback.
- Parameters
-
◆ OnLeaveHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnLeaveHandler |
( |
int |
id, |
|
|
LEAVE_CHANNEL_ERR |
errorCode |
|
) |
| |
Returns the result of the leave method call.
- Parameters
-
◆ OnMemberCountUpdatedHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnMemberCountUpdatedHandler |
( |
int |
id, |
|
|
int |
memberCount |
|
) |
| |
Occurs when the number of the channel members changes, and returns the new number.
- Note
- When the number of channel members ≤ 512, the SDK returns this callback when the number changes at the frequency of once per second.
- When the number of channel members exceeds 512, the SDK returns this callback when the number changes at the frequency of once every three seconds.
- You will receive this callback when successfully joining an RTM channel, so Agora recommends implementing this callback to receive timely updates on the number of the channel members.
- Parameters
-
◆ OnMemberJoinedHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnMemberJoinedHandler |
( |
int |
id, |
|
|
RtmChannelMember |
member |
|
) |
| |
Occurs when a remote user joins the channel. When a remote user calls the Join method and receives the OnJoinSuccessHandler callback (successfully joins the channel), the local user receives this callback.
- Note
- This callback is disabled when the number of the channel members exceeds 512.
- Parameters
-
◆ OnMemberLeftHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnMemberLeftHandler |
( |
int |
id, |
|
|
RtmChannelMember |
member |
|
) |
| |
Occurs when a remote member leaves the channel. When a remote member in the channel calls the Leave method and receives the the OnLeaveHandler (LEAVE_CHANNEL_ERR_OK) callback, the local user receives this callback.
- Note
- This callback is disabled when the number of the channel members exceeds 512.
- Parameters
-
◆ OnMessageReceivedHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnMessageReceivedHandler |
( |
int |
id, |
|
|
string |
userId, |
|
|
TextMessage |
message |
|
) |
| |
Occurs when receiving a channel message.
- Parameters
-
◆ OnSendMessageResultHandler()
delegate void agora_rtm.RtmChannelEventHandler.OnSendMessageResultHandler |
( |
int |
id, |
|
|
Int64 |
messageId, |
|
|
CHANNEL_MESSAGE_ERR_CODE |
errorCode |
|
) |
| |
Returns the result of the SendMessage method call.
- Parameters
-
◆ Release()
void agora_rtm.RtmChannelEventHandler.Release |
( |
| ) |
|
|
inline |
◆ OnAttributesUpdated
◆ OnFileMessageReceived
◆ OnGetMembers
◆ OnImageMessageReceived
◆ OnJoinFailure
◆ OnJoinSuccess
◆ OnLeave
◆ OnMemberCountUpdated
◆ OnMemberJoined
◆ OnMemberLeft
◆ OnMessageReceived
◆ OnSendMessageResult
The documentation for this class was generated from the following file: