EMGroupManagerListener 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.

Registers a group change listener:

  EMClient.getInstance.groupManager.addGroupChangeListener(listener);

Unregisters a group change listener:

  EMClient.getInstance.groupManager.removeGroupChangeListener(listener);

Constructors

EMGroupManagerListener()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 {@link EMOptions#autoAcceptGroupInvitation(boolean value)}. The SDK will join the group before notifying the app of the acceptance of the group invitation.
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.
onSharedFileAddedFromGroup(String groupId, EMGroupSharedFile sharedFile) → void
Occurs when a shared file is added to a group.
onSharedFileDeletedFromGroup(String groupId, String fileId) → void
Occurs when a shared file is removed from a group.
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