Chat SDK for Unity and Windows v1.2.0
|
Public Member Functions | |
void | OnInvitationReceivedFromGroup (string groupId, string groupName, string inviter, string reason) |
void | OnRequestToJoinReceivedFromGroup (string groupId, string groupName, string applicant, string reason) |
void | OnRequestToJoinAcceptedFromGroup (string groupId, string groupName, string accepter) |
void | OnRequestToJoinDeclinedFromGroup (string groupId, string reason) |
void | OnInvitationAcceptedFromGroup (string groupId, string invitee) |
void | OnInvitationDeclinedFromGroup (string groupId, string invitee, string reason) |
void | OnUserRemovedFromGroup (string groupId, string groupName) |
void | OnDestroyedFromGroup (string groupId, string groupName) |
void | OnAutoAcceptInvitationFromGroup (string groupId, string inviter, string inviteMessage) |
void | OnMuteListAddedFromGroup (string groupId, List< string > mutes, long muteExpire) |
void | OnMuteListRemovedFromGroup (string groupId, List< string > mutes) |
void | OnAdminAddedFromGroup (string groupId, string administrator) |
void | OnAdminRemovedFromGroup (string groupId, string administrator) |
void | OnOwnerChangedFromGroup (string groupId, string newOwner, string oldOwner) |
void | OnMemberJoinedFromGroup (string groupId, string member) |
void | OnMemberExitedFromGroup (string groupId, string member) |
void | OnAnnouncementChangedFromGroup (string groupId, string announcement) |
void | OnSharedFileAddedFromGroup (string groupId, GroupSharedFile sharedFile) |
void | OnSharedFileDeletedFromGroup (string groupId, string fileId) |
void | OnAddAllowListMembersFromGroup (string groupId, List< string > allowList) |
void | OnRemoveAllowListMembersFromGroup (string groupId, List< string > allowList) |
void | OnAllMemberMuteChangedFromGroup (string groupId, bool isAllMuted) |
void | OnStateChangedFromGroup (string groupId, bool isDisable) |
void | OnSpecificationChangedFromGroup (Group group) |
void | OnUpdateMemberAttributesFromGroup (string groupId, string userId, Dictionary< string, string > attributes, string from) |
The group manager callback interface.
void AgoraChat.IGroupManagerDelegate.OnInvitationReceivedFromGroup | ( | string | groupId, |
string | groupName, | ||
string | inviter, | ||
string | reason | ||
) |
Occurs when the user receives a group invitation.
groupId | The group ID. |
groupName | The group name. |
inviter | The user ID of the inviter. |
reason | The reason for invitation. |
void AgoraChat.IGroupManagerDelegate.OnRequestToJoinReceivedFromGroup | ( | string | groupId, |
string | groupName, | ||
string | applicant, | ||
string | reason | ||
) |
Occurs when the group owner or admin receives a join request from a user.
groupId | The group ID. |
groupName | The group name. |
applicant | The ID of the user requesting to join the group. |
reason | The reason for requesting to join the group. |
void AgoraChat.IGroupManagerDelegate.OnRequestToJoinAcceptedFromGroup | ( | string | groupId, |
string | groupName, | ||
string | accepter | ||
) |
Occurs when a join request is accepted.
groupId | The group ID. |
groupName | The group name. |
accepter | The ID of the user that accepts the join request. |
void AgoraChat.IGroupManagerDelegate.OnRequestToJoinDeclinedFromGroup | ( | string | groupId, |
string | reason | ||
) |
Occurs when a join request is declined.
groupId | The group ID. |
reason | The reason for declining the join request. |
void AgoraChat.IGroupManagerDelegate.OnInvitationAcceptedFromGroup | ( | string | groupId, |
string | invitee | ||
) |
Occurs when a group invitation is accepted.
groupId | The group ID. |
invitee | The user ID of the invitee. |
void AgoraChat.IGroupManagerDelegate.OnInvitationDeclinedFromGroup | ( | string | groupId, |
string | invitee, | ||
string | reason | ||
) |
Occurs when a group invitation is declined.
groupId | The group ID. |
invitee | The user ID of the invitee. |
reason | The reason for declining the invitation. |
void AgoraChat.IGroupManagerDelegate.OnUserRemovedFromGroup | ( | string | groupId, |
string | groupName | ||
) |
Occurs when the current user is removed from the group by the group owner or group admin.
groupId | The group ID. |
groupName | The group name. |
void AgoraChat.IGroupManagerDelegate.OnDestroyedFromGroup | ( | string | groupId, |
string | groupName | ||
) |
Occurs when a group is destroyed.
The SDK will remove the group from the local database and local memory before notifying the app of the group removal via the callback method.
groupId | The group ID. |
groupName | The group name. |
void AgoraChat.IGroupManagerDelegate.OnAutoAcceptInvitationFromGroup | ( | string | groupId, |
string | inviter, | ||
string | inviteMessage | ||
) |
Occurs when the group invitation is accepted automatically.
The SDK will add the user to the group before notifying the app of the acceptance of the group invitation via the callback method.
For settings, see com.hyphenate.chat.EMOptions#setAutoAcceptGroupInvitation(boolean value)
.
groupId | The group ID. |
inviter | The user ID of the inviter. |
inviteMessage | The invitation message. |
void AgoraChat.IGroupManagerDelegate.OnMuteListAddedFromGroup | ( | string | groupId, |
List< string > | mutes, | ||
long | muteExpire | ||
) |
Occurs when one or more group members are muted.
Note
A user, when muted, can still see group messages, but cannot send messages in the group. However, a user on the block list can neither see nor send group messages.
groupId | The group ID. |
mutes | The member(s) added to the mute list. |
muteExpire | The mute duration in milliseconds. |
void AgoraChat.IGroupManagerDelegate.OnMuteListRemovedFromGroup | ( | string | groupId, |
List< string > | mutes | ||
) |
Occurs when one or more group members are unmuted.
Note
A user, when muted, can still see group messages, but cannot send messages in the group. However, a user on the block list can neither see nor send group messages.
groupId | The group ID. |
mutes | The member(s) removed from the mute list. |
void AgoraChat.IGroupManagerDelegate.OnAdminAddedFromGroup | ( | string | groupId, |
string | administrator | ||
) |
Occurs when a member is set as an admin.
groupId | The group ID. |
administrator | The user ID of the member that is set as an admin. |
void AgoraChat.IGroupManagerDelegate.OnAdminRemovedFromGroup | ( | string | groupId, |
string | administrator | ||
) |
Occurs when the admin privileges of a member are removed..
groupId | The group ID. |
administrator | The user ID of the member whose admin privileges are removed. |
void AgoraChat.IGroupManagerDelegate.OnOwnerChangedFromGroup | ( | string | groupId, |
string | newOwner, | ||
string | oldOwner | ||
) |
Occurs when the group ownership is transferred.
groupId | The group ID. |
newOwner | The new group owner. |
oldOwner | The previous group owner. |
void AgoraChat.IGroupManagerDelegate.OnMemberJoinedFromGroup | ( | string | groupId, |
string | member | ||
) |
Occurs when a user joins a group.
groupId | The group ID. |
member | The ID of the new member. |
void AgoraChat.IGroupManagerDelegate.OnMemberExitedFromGroup | ( | string | groupId, |
string | member | ||
) |
Occurs when a member voluntarily leaves the group.
groupId | The group ID. |
member | The user ID of the member who has left the group. |
void AgoraChat.IGroupManagerDelegate.OnAnnouncementChangedFromGroup | ( | string | groupId, |
string | announcement | ||
) |
Occurs when the group announcement is updated.
groupId | The group ID. |
announcement | The updated announcement content. |
void AgoraChat.IGroupManagerDelegate.OnSharedFileAddedFromGroup | ( | string | groupId, |
GroupSharedFile | sharedFile | ||
) |
Occurs when a shared file is added to a group.
groupId | The group ID. |
sharedFile | The new shared file. |
void AgoraChat.IGroupManagerDelegate.OnSharedFileDeletedFromGroup | ( | string | groupId, |
string | fileId | ||
) |
Occurs when a shared file is removed from a group.
groupId | The group ID. |
fileId | The ID of the removed shared file. |
void AgoraChat.IGroupManagerDelegate.OnAddAllowListMembersFromGroup | ( | string | groupId, |
List< string > | allowList | ||
) |
Occurs when one or more group members are added to the group allow list.
groupId | The group ID. |
allowList | The member(s) added to the group allow list. |
void AgoraChat.IGroupManagerDelegate.OnRemoveAllowListMembersFromGroup | ( | string | groupId, |
List< string > | allowList | ||
) |
Occurs when one or more members are removed from the group allow list.
groupId | The group ID. |
allowList | Member(s) removed from the group allow list. |
void AgoraChat.IGroupManagerDelegate.OnAllMemberMuteChangedFromGroup | ( | string | groupId, |
bool | isAllMuted | ||
) |
Occurs when all group members are muted or unmuted.
groupId | The group ID. |
isAllMuted | Whether all group members are muted or unmuted.
|
void AgoraChat.IGroupManagerDelegate.OnStateChangedFromGroup | ( | string | groupId, |
bool | isDisable | ||
) |
Occurs when the disabled state of group changes.
groupId | The group ID. |
isDisable | Whether the group is disabled. |
void AgoraChat.IGroupManagerDelegate.OnSpecificationChangedFromGroup | ( | Group | group | ) |
Occurs when the group specification(s) is/are changed.
Once the group specifications are changed, you need to call GetGroupSpecificationFromServer(string, ValueCallBack<Group>)
to get the latest group information from the server.
group | The group instance. |
void AgoraChat.IGroupManagerDelegate.OnUpdateMemberAttributesFromGroup | ( | string | groupId, |
string | userId, | ||
Dictionary< string, string > | attributes, | ||
string | from | ||
) |
Occurs when a custom attribute(s) of a group member is/are changed.
groupId | The group ID. |
userId | The user ID of the group member whose custom attribute(s) is/are changed. |
attributes | The modified custom attribute(s). |
from | The user ID of the operator. |