Chat SDK for Unity and Windows v1.2.0
|
Public Member Functions | |
void | OnDestroyedFromRoom (string roomId, string roomName) |
void | OnMemberJoinedFromRoom (string roomId, string participant) |
void | OnMemberExitedFromRoom (string roomId, string roomName, string participant) |
void | OnRemovedFromRoom (string roomId, string roomName, string participant) |
void | OnRemoveFromRoomByOffline (string roomId, string roomName) |
void | OnMuteListAddedFromRoom (string roomId, List< string > mutes, long expireTime) |
void | OnMuteListRemovedFromRoom (string roomId, List< string > mutes) |
void | OnAdminAddedFromRoom (string roomId, string admin) |
void | OnAdminRemovedFromRoom (string roomId, string admin) |
void | OnOwnerChangedFromRoom (string roomId, string newOwner, string oldOwner) |
void | OnAnnouncementChangedFromRoom (string roomId, string announcement) |
void | OnChatroomAttributesChanged (string roomId, Dictionary< string, string > kv, string from) |
void | OnChatroomAttributesRemoved (string roomId, List< string > keys, string from) |
void | OnSpecificationChangedFromRoom (Room room) |
void | OnAddAllowListMembersFromChatroom (string roomId, List< string > members) |
void | OnRemoveAllowListMembersFromChatroom (string roomId, List< string > members) |
void | OnAllMemberMuteChangedFromChatroom (string roomId, bool isAllMuted) |
The chat manager callback interface.
void AgoraChat.IRoomManagerDelegate.OnDestroyedFromRoom | ( | string | roomId, |
string | roomName | ||
) |
Occurs when the chat room is destroyed.
roomId | The chat room ID. |
roomName | The chat room name. |
void AgoraChat.IRoomManagerDelegate.OnMemberJoinedFromRoom | ( | string | roomId, |
string | participant | ||
) |
Occurs when a user joins the chat room.
roomId | The chat room ID. |
participant | The user ID of the new member. |
void AgoraChat.IRoomManagerDelegate.OnMemberExitedFromRoom | ( | string | roomId, |
string | roomName, | ||
string | participant | ||
) |
Occurs when a member voluntarily leaves the chat room.
roomId | The chat room ID. |
roomName | The name of the chat room. |
participant | The user ID of the member who leaves the chat room. |
void AgoraChat.IRoomManagerDelegate.OnRemovedFromRoom | ( | string | roomId, |
string | roomName, | ||
string | participant | ||
) |
Occurs when a member is removed from a chat room.
roomId | The chat room ID. |
roomName | The name of the chat room. |
participant | The user ID of the member that is removed from a chat room. |
void AgoraChat.IRoomManagerDelegate.OnRemoveFromRoomByOffline | ( | string | roomId, |
string | roomName | ||
) |
Occurs when a member is removed from a chat room because he or she gets offline.
roomId | The chat room ID. |
roomName | The name of the chat room. |
void AgoraChat.IRoomManagerDelegate.OnMuteListAddedFromRoom | ( | string | roomId, |
List< string > | mutes, | ||
long | expireTime | ||
) |
Occurs when a chat room member is added to the mute list.
The muted members cannot send messages during the mute duration.
chatRoomId | The chat room ID. |
mutes | The user ID(s) of the muted member(s). |
expireTime | The mute duration in milliseconds. |
void AgoraChat.IRoomManagerDelegate.OnMuteListRemovedFromRoom | ( | string | roomId, |
List< string > | mutes | ||
) |
Occurs when a chat room member is removed from the mute list.
chatRoomId | The chat room ID. |
mutes | The user ID(s) of member(s) that is removed from the mute list of the chat room. |
void AgoraChat.IRoomManagerDelegate.OnAdminAddedFromRoom | ( | string | roomId, |
string | admin | ||
) |
Occurs when a regular chat room member is set as an admin.
roomId | The chat room ID. |
admin | The user ID of the member who is set as an admin. |
void AgoraChat.IRoomManagerDelegate.OnAdminRemovedFromRoom | ( | string | roomId, |
string | admin | ||
) |
Occurs when an admin is demoted to a regular member.
roomId | The chat room ID. |
admin | The user ID of the admin whose administrative permissions are removed. |
void AgoraChat.IRoomManagerDelegate.OnOwnerChangedFromRoom | ( | string | roomId, |
string | newOwner, | ||
string | oldOwner | ||
) |
Occurs when the chat room ownership is transferred.
roomId | The chat room ID. |
newOwner | The user ID of the new chat room owner. |
oldOwner | The user ID of the previous chat room owner. |
void AgoraChat.IRoomManagerDelegate.OnAnnouncementChangedFromRoom | ( | string | roomId, |
string | announcement | ||
) |
Occurs when the chat room announcement is updated.
roomId | The chat room ID. |
announcement | The updated announcement. |
void AgoraChat.IRoomManagerDelegate.OnChatroomAttributesChanged | ( | string | roomId, |
Dictionary< string, string > | kv, | ||
string | from | ||
) |
The custom chat room attribute(s) is/are updated.
All chat room members receive this event.
chatRoomId | The chat room ID. |
kv | The map of custom chat room attributes that are updated. |
from | The user ID of the operator. |
void AgoraChat.IRoomManagerDelegate.OnChatroomAttributesRemoved | ( | string | roomId, |
List< string > | keys, | ||
string | from | ||
) |
The custom chat room attribute(s) is/are removed.
All chat room members receive this event.
chatRoomId | The chat room ID. |
keys | The list of keys of custom chat room attributes that are removed. |
from | The user ID of the operator. |
void AgoraChat.IRoomManagerDelegate.OnSpecificationChangedFromRoom | ( | Room | room | ) |
Occurs when the chat room specifications are changed.
All chat room members receive this event.
room | The chat room instance. |
void AgoraChat.IRoomManagerDelegate.OnAddAllowListMembersFromChatroom | ( | string | roomId, |
List< string > | members | ||
) |
Occurs when the chat room member(s) is/are added to the allow list.
The members added to the allow list receive this event.
roomId | The chat room ID. |
members | The member(s) added to the allow list. |
void AgoraChat.IRoomManagerDelegate.OnRemoveAllowListMembersFromChatroom | ( | string | roomId, |
List< string > | members | ||
) |
Occurs when the chat room member(s) is/are removed from the allow list.
The members that are removed from the allow list receive this event.
roomId | The chat room ID. |
members | The member(s) removed from the allow list. |
void AgoraChat.IRoomManagerDelegate.OnAllMemberMuteChangedFromChatroom | ( | string | roomId, |
bool | isAllMuted | ||
) |
Occurs when all members in the chat room are muted or unmuted.
All chat room members receive this event.
roomId | The chat room ID. |
isAllMuted | Whether all chat room members are muted or unmuted. |