ChatGroupEventHandler constructor
- void onAdminAddedFromGroup()?,
- void onAdminRemovedFromGroup()?,
- void onAllGroupMemberMuteStateChanged()?,
- void onAllowListAddedFromGroup()?,
- void onAllowListRemovedFromGroup()?,
- void onAnnouncementChangedFromGroup()?,
- void onAutoAcceptInvitationFromGroup()?,
- void onGroupDestroyed()?,
- void onInvitationAcceptedFromGroup()?,
- void onInvitationDeclinedFromGroup()?,
- void onInvitationReceivedFromGroup()?,
- void onMemberExitedFromGroup()?,
- void onMemberJoinedFromGroup()?,
- void onMuteListAddedFromGroup()?,
- void onMuteListRemovedFromGroup()?,
- void onOwnerChangedFromGroup()?,
- void onRequestToJoinAcceptedFromGroup()?,
- void onRequestToJoinDeclinedFromGroup()?,
- void onRequestToJoinReceivedFromGroup()?,
- void onUserRemovedFromGroup()?,
- void onSpecificationDidUpdate(
- ChatGroup group
- void onDisableChanged()?,
- void onAttributesChangedOfGroupMember()?,
~english The group manager listener callback.
Param onAdminAddedFromGroup A member is set as an admin.
Param onAdminRemovedFromGroup A member's admin privileges are removed.
Param onAllGroupMemberMuteStateChanged All group members are muted or unmuted.
Param onAllowListAddedFromGroup One or more group members are muted.
Param onAllowListRemovedFromGroup One or more group members are unmuted.
Param onAnnouncementChangedFromGroup The announcement is updated.
Param onAutoAcceptInvitationFromGroup The group invitation is accepted automatically.
Param onGroupDestroyed A group is destroyed.
Param onInvitationAcceptedFromGroup A group invitation is accepted.
Param onInvitationDeclinedFromGroup A group invitation is declined.
Param onInvitationReceivedFromGroup The user receives a group invitation.
Param onMemberExitedFromGroup A member proactively leaves the group.
Param onMemberJoinedFromGroup A user joins a group.
Param onMuteListAddedFromGroup One or more group members are muted.
Param onMuteListRemovedFromGroup One or more group members are unmuted.
Param onOwnerChangedFromGroup The group ownership is transferred.
Param onRequestToJoinAcceptedFromGroup A group request is accepted.
Param onRequestToJoinDeclinedFromGroup A group request is declined.
Param onRequestToJoinReceivedFromGroup The group owner or administrator receives a group request from a user.
Param onSharedFileAddedFromGroup A shared file is added to a group.
Param onSharedFileDeletedFromGroup A shared file is removed from a group.
Param onUserRemovedFromGroup Current user is removed from the group by the group admin.
Param onSpecificationDidUpdate The group detail information is updated.
Param onDisableChanged Te group is enabled or disabled.
Param onAttributesChangedOfGroupMember A custom attribute(s) of a group member is/are changed. ~end
~chinese 群组时间监听
Param onAdminAddedFromGroup 成员设置为管理员的回调。
Param onAdminRemovedFromGroup 取消成员的管理员权限的回调。
Param onAllGroupMemberMuteStateChanged 全员禁言状态变化回调。
Param onAllowListAddedFromGroup 成员加入群组白名单回调。
Param onAllowListRemovedFromGroup 成员移出群组白名单回调。
Param onAnnouncementChangedFromGroup 群公告更新回调。
Param onAutoAcceptInvitationFromGroup 当前用户自动同意入群邀请的回调, 设置请见 ChatOptions.autoAcceptGroupInvitation。
Param onGroupDestroyed 当前用户收到群组被解散的回调。
Param onInvitationAcceptedFromGroup 当前用户收到对端用户同意入群邀请触发的回调。
Param onInvitationDeclinedFromGroup 当前用户收到群组邀请被拒绝的回调。
Param onInvitationReceivedFromGroup 当前用户收到入群邀请的回调。
Param onMemberExitedFromGroup 群组成员主动退出回调。
Param onMemberJoinedFromGroup 新成员加入群组的回调。
Param onMuteListAddedFromGroup 有成员被禁言回调, 用户禁言后,将无法在群中发送消息,但可查看群组中的消息,而黑名单中的用户无法查看和发送群组消息。
Param onMuteListRemovedFromGroup 有成员被解除禁言的回调。
Param onOwnerChangedFromGroup 转移群主权限的回调。
Param onRequestToJoinAcceptedFromGroup 对端用户接受当前用户发送的群组申请的回调。
Param onRequestToJoinDeclinedFromGroup 对端用户拒绝群组申请的回调。
Param onRequestToJoinReceivedFromGroup 对端用户接收群组申请的回调。
Param onSharedFileAddedFromGroup 群组添加共享文件回调。
Param onSharedFileDeletedFromGroup 群组删除共享文件回调。
Param onUserRemovedFromGroup 当前用户被移出群组时的回调。
Param onSpecificationDidUpdate 群详情变更回调。
Param onDisableChanged 群是禁用状态变更。
Param onAttributesChangedOfGroupMember 群组成员自定义属性有变更。 ~end
Implementation
ChatGroupEventHandler({
this.onAdminAddedFromGroup,
this.onAdminRemovedFromGroup,
this.onAllGroupMemberMuteStateChanged,
this.onAllowListAddedFromGroup,
this.onAllowListRemovedFromGroup,
this.onAnnouncementChangedFromGroup,
this.onAutoAcceptInvitationFromGroup,
this.onGroupDestroyed,
this.onInvitationAcceptedFromGroup,
this.onInvitationDeclinedFromGroup,
this.onInvitationReceivedFromGroup,
this.onMemberExitedFromGroup,
this.onMemberJoinedFromGroup,
this.onMuteListAddedFromGroup,
this.onMuteListRemovedFromGroup,
this.onOwnerChangedFromGroup,
this.onRequestToJoinAcceptedFromGroup,
this.onRequestToJoinDeclinedFromGroup,
this.onRequestToJoinReceivedFromGroup,
this.onSharedFileAddedFromGroup,
this.onSharedFileDeletedFromGroup,
this.onUserRemovedFromGroup,
this.onSpecificationDidUpdate,
this.onDisableChanged,
this.onAttributesChangedOfGroupMember,
});