ChatGroupEventHandler constructor

ChatGroupEventHandler(
  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
    )?,
  19. void onRequestToJoinReceivedFromGroup(
    1. String groupId,
    2. String? groupName,
    3. String applicant,
    4. String? reason
    )?,
  20. void onSharedFileAddedFromGroup(
    1. String groupId,
    2. ChatGroupSharedFile sharedFile
    )?,
  21. void onSharedFileDeletedFromGroup(
    1. String groupId,
    2. String fileId
    )?,
  22. void onUserRemovedFromGroup(
    1. String groupId,
    2. String? groupName
    )?,
  23. void onSpecificationDidUpdate(
    1. ChatGroup 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
    )?}
)

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.

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