EMGroupEventHandler constructor

EMGroupEventHandler(
  1. {void onAdminAddedFromGroup(
    1. String groupId,
    2. String admin
    )?,
  2. void onAdminRemovedFromGroup(
    1. String groupId,
    2. String admin
    )?,
  3. void onAllGroupMemberMuteStateChanged(
    1. String groupId,
    2. bool isAllMuted
    )?,
  4. void onAllowListAddedFromGroup(
    1. String groupId,
    2. List<String> members
    )?,
  5. void onAllowListRemovedFromGroup(
    1. String groupId,
    2. List<String> members
    )?,
  6. void onAnnouncementChangedFromGroup(
    1. String groupId,
    2. String announcement
    )?,
  7. void onAutoAcceptInvitationFromGroup(
    1. String groupId,
    2. String inviter,
    3. String? inviteMessage
    )?,
  8. void onGroupDestroyed(
    1. String groupId,
    2. String? groupName
    )?,
  9. void onInvitationAcceptedFromGroup(
    1. String groupId,
    2. String invitee,
    3. String? reason
    )?,
  10. void onInvitationDeclinedFromGroup(
    1. String groupId,
    2. String invitee,
    3. String? reason
    )?,
  11. void onInvitationReceivedFromGroup(
    1. String groupId,
    2. String? groupName,
    3. String inviter,
    4. String? reason
    )?,
  12. void onMemberExitedFromGroup(
    1. String groupId,
    2. String member
    )?,
  13. void onMemberJoinedFromGroup(
    1. String groupId,
    2. String member
    )?,
  14. void onMuteListAddedFromGroup(
    1. String groupId,
    2. List<String> mutes,
    3. int? muteExpire
    )?,
  15. void onMuteListRemovedFromGroup(
    1. String groupId,
    2. List<String> mutes
    )?,
  16. void onOwnerChangedFromGroup(
    1. String groupId,
    2. String newOwner,
    3. String oldOwner
    )?,
  17. void onRequestToJoinAcceptedFromGroup(
    1. String groupId,
    2. String? groupName,
    3. String accepter
    )?,
  18. void onRequestToJoinDeclinedFromGroup(
    1. String groupId,
    2. String? groupName,
    3. String? decliner,
    4. String? reason,
    5. String? applicant
    )?,
  19. void onRequestToJoinReceivedFromGroup(
    1. String groupId,
    2. String? groupName,
    3. String applicant,
    4. String? reason
    )?,
  20. void onSharedFileAddedFromGroup(
    1. String groupId,
    2. EMGroupSharedFile sharedFile
    )?,
  21. void onSharedFileDeletedFromGroup(
    1. String groupId,
    2. String fileId
    )?,
  22. void onUserRemovedFromGroup(
    1. String groupId,
    2. String? groupName
    )?,
  23. void onSpecificationDidUpdate(
    1. EMGroup group
    )?,
  24. void onDisableChanged(
    1. String groupId,
    2. bool isDisable
    )?,
  25. void onAttributesChangedOfGroupMember(
    1. String groupId,
    2. String userId,
    3. Map<String, String>? attributes,
    4. String? operatorId
    )?}
)

群组时间监听

Param onAdminAddedFromGroup 成员设置为管理员的回调。

Param onAdminRemovedFromGroup 取消成员的管理员权限的回调。

Param onAllGroupMemberMuteStateChanged 全员禁言状态变化回调。

Param onAllowListAddedFromGroup 成员加入群组白名单回调。

Param onAllowListRemovedFromGroup 成员移出群组白名单回调。

Param onAnnouncementChangedFromGroup 群公告更新回调。

Param onAutoAcceptInvitationFromGroup 当前用户自动同意入群邀请的回调, 设置请见 EMOptions.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 群组成员自定义属性有变更。

Implementation

EMGroupEventHandler({
  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,
});