ChatGroupManagerListener class Null safety
The group change listener.
Occurs when the following group events happens: requesting to join a group, approving or declining a group request, and kicking a user out of a group.
Register a group change listener:
ChatClient.getInstance.groupManager.addGroupManagerListener(listener);
Unregister a group change listener:
ChatClient.getInstance.groupManager.removeGroupManagerListener(listener);
- Annotations
-
- @Deprecated("Use ChatGroupEventHandler to instead")
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
onAdminAddedFromGroup(
String groupId, String admin) → void - Occurs when a member is set as an admin.
-
onAdminRemovedFromGroup(
String groupId, String admin) → void - Occurs when a member's admin privileges are removed.
-
onAllGroupMemberMuteStateChanged(
String groupId, bool isAllMuted) → void - Occurs when all group members are muted or unmuted.
-
onAllowListAddedFromGroup(
String groupId, List< String> members) → void - Occurs when one or more group members are added to the allowlist.
-
onAllowListRemovedFromGroup(
String groupId, List< String> members) → void - Occurs when one or more members are removed from the allowlist.
-
onAnnouncementChangedFromGroup(
String groupId, String announcement) → void - Occurs when the announcement is updated.
-
onAutoAcceptInvitationFromGroup(
String groupId, String inviter, String? inviteMessage) → void - Occurs when the group invitation is accepted automatically. For settings, see ChatOptions.autoAcceptGroupInvitation. The SDK will join the group before notifying the app of the acceptance of the group invitation.
-
onDisableChange(
String groupId, bool isDisable) → void - Occurs when the group is enabled or disabled.
-
onGroupDestroyed(
String groupId, String? groupName) → void - Occurs when a group is destroyed.
-
onInvitationAcceptedFromGroup(
String groupId, String invitee, String? reason) → void - Occurs when a group invitation is accepted.
-
onInvitationDeclinedFromGroup(
String groupId, String invitee, String? reason) → void - Occurs when a group invitation is declined.
-
onInvitationReceivedFromGroup(
String groupId, String? groupName, String inviter, String? reason) → void - Occurs when the user receives a group invitation.
-
onMemberExitedFromGroup(
String groupId, String member) → void - Occurs when a member proactively leaves the group.
-
onMemberJoinedFromGroup(
String groupId, String member) → void - Occurs when a member joins a group.
-
onMuteListAddedFromGroup(
String groupId, List< String> mutes, int? muteExpire) → void - Occurs when one or more group members are muted.
-
onMuteListRemovedFromGroup(
String groupId, List< String> mutes) → void - Occurs when one or more group members are unmuted.
-
onOwnerChangedFromGroup(
String groupId, String newOwner, String oldOwner) → void - Occurs when the group ownership is transferred.
-
onRequestToJoinAcceptedFromGroup(
String groupId, String? groupName, String accepter) → void - Occurs when a group request is accepted.
-
onRequestToJoinDeclinedFromGroup(
String groupId, String? groupName, String decliner, String? reason) → void - Occurs when a group request is declined.
-
onRequestToJoinReceivedFromGroup(
String groupId, String? groupName, String applicant, String? reason) → void - Occurs when the group owner or administrator receives a group request from a user.
- Occurs when a shared file is added to a group.
- Occurs when a shared file is removed from a group.
-
onSpecificationDidUpdate(
ChatGroup group) → void - Occurs when the group detail information is updated.
-
onUserRemovedFromGroup(
String groupId, String? groupName) → void - Occurs when the current user is removed from the group by the group admin.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited