GroupManagerDefault class
Methods
-
acceptInvitation(String groupId, String inviter)
→ Future<EMGroup>
-
~english
Accepts a group invitation.
inherited
-
acceptJoinApplication(String groupId, String username)
→ Future<void>
-
~english
Approves a group request.
inherited
-
addAdmin(String groupId, String memberId)
→ Future<void>
-
~english
Adds a group admin.
inherited
-
addAllowList(String groupId, List<String> members)
→ Future<void>
-
~english
Adds members to the allow list of the group.
inherited
-
addEventHandler(String identifier, EMGroupEventHandler handler)
→ void
-
~english
Adds the group event handler. After calling this method, you can handle for new group event when they arrive.
inherited
-
addMembers(String groupId, List<String> members, {String? welcome})
→ Future<void>
-
~english
Adds users to the group.
inherited
-
blockGroup(String groupId)
→ Future<void>
-
~english
Blocks group messages.
inherited
-
blockMembers(String groupId, List<String> members)
→ Future<void>
-
~english
Adds the user to the block list of the group.
inherited
-
changeGroupDescription(String groupId, String desc)
→ Future<void>
-
~english
Changes the group description.
inherited
-
changeGroupName(String groupId, String name)
→ Future<void>
-
~english
Changes the group name.
inherited
-
changeOwner(String groupId, String newOwner)
→ Future<void>
-
~english
Transfers the group ownership.
inherited
-
clearAllGroupsFromLocal()
→ Future<void>
-
~english
Clears the information of all groups in the local database.
inherited
-
clearEventHandlers()
→ void
-
~english
Clear all group event handlers.
~end
inherited
-
createGroup({String? groupName, String? desc, List<String>? inviteMembers, String? inviteReason, required EMGroupOptions options})
→ Future<EMGroup>
-
~english
Creates a group instance.
inherited
-
declineInvitation({required String groupId, required String inviter, String? reason})
→ Future<void>
-
~english
Declines a group invitation.
inherited
-
declineJoinApplication(String groupId, String username, {String? reason})
→ Future<void>
-
~english
Declines a group request.
inherited
-
destroyGroup(String groupId)
→ Future<void>
-
~english
Destroys the group instance.
inherited
-
downloadGroupSharedFile({required String groupId, required String fileId, required String savePath})
→ Future<void>
-
~english
Downloads the shared file of the group.
inherited
-
fetchAllowListFromServer(String groupId)
→ Future<List<String>>
-
~english
Gets the allow list of the group from the server.
inherited
-
fetchAnnouncementFromServer(String groupId)
→ Future<String?>
-
~english
Gets the group announcement from the server.
inherited
-
fetchBlockListFromServer(String groupId, {int pageSize = 200, int pageNum = 1})
→ Future<List<String>>
-
~english
Gets the group block list from server with pagination.
inherited
-
fetchGroupFileListFromServer(String groupId, {int pageSize = 200, int pageNum = 1})
→ Future<List<EMGroupSharedFile>>
-
~english
Gets the shared files of the group from the server.
inherited
-
fetchGroupInfoFromServer(String groupId, {bool fetchMembers = false})
→ Future<EMGroup>
-
~english
Gets the group information from the server.
inherited
-
fetchJoinedGroupCount()
→ Future<int>
-
~english
Gets groups count of the current user joined from the server.
inherited
-
fetchJoinedGroupsFromServer({int pageSize = 20, int pageNum = 0, bool needMemberCount = false, bool needRole = false})
→ Future<List<EMGroup>>
-
~english
Gets all groups of the current user from the server.
inherited
-
fetchMemberAttributes({required String groupId, String? userId})
→ Future<Map<String, String>>
-
~english
Gets all custom attributes of a group member.
inherited
-
fetchMemberListFromServer(String groupId, {int pageSize = 200, String? cursor})
→ Future<EMCursorResult<String>>
-
~english
Gets the member list of the group with pagination.
inherited
-
fetchMembersAttributes({required String groupId, required List<String> userIds, List<String>? keys})
→ Future<Map<String, Map<String, String>>>
-
~english
Gets custom attributes of multiple group members by attribute key.
inherited
-
fetchMuteListFromServer(String groupId, {int pageSize = 200, int pageNum = 1})
→ Future<Map<String, int>>
-
~english
Gets the mute list of the group from the server.
inherited
-
fetchPublicGroupsFromServer({int pageSize = 200, String? cursor})
→ Future<EMCursorResult<EMGroupInfo>>
-
~english
Gets public groups from the server with pagination.
inherited
-
getEventHandler(String identifier)
→ EMGroupEventHandler?
-
~english
Get the group event handler.
inherited
-
getGroupWithId(String groupId)
→ Future<EMGroup?>
-
~english
Gets the group instance from the cache by group ID.
inherited
-
getJoinedGroups()
→ Future<List<EMGroup>>
-
~english
Gets all groups of the current user from the cache.
inherited
-
initHandler()
→ void
-
inherited
-
inviterUser(String groupId, List<String> members, {String? reason})
→ Future<void>
-
~english
Invites users to join the group.
inherited
-
isMemberInAllowListFromServer(String groupId)
→ Future<bool>
-
~english
Gets whether the member is on the allow list of the group.
inherited
-
isMemberInGroupMuteList(String groupId)
→ Future<bool>
-
inherited
-
joinPublicGroup(String groupId)
→ Future<void>
-
~english
Joins a public group.
inherited
-
leaveGroup(String groupId)
→ Future<void>
-
~english
Leaves a group.
inherited
-
muteAllMembers(String groupId)
→ Future<void>
-
~english
Mutes all members.
inherited
-
muteMembers(String groupId, List<String> members, {int duration = -1})
→ Future<void>
-
~english
Mutes group members.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAdmin(String groupId, String adminId)
→ Future<void>
-
~english
Removes a group admin.
inherited
-
removeAllowList(String groupId, List<String> members)
→ Future<void>
-
~english
Removes members from the allow list of the group.
inherited
-
removeEventHandler(String identifier)
→ void
-
~english
Remove the group event handler.
inherited
-
removeGroupSharedFile(String groupId, String fileId)
→ Future<void>
-
~english
Removes a shared file of the group.
inherited
-
removeMemberAttributes({required String groupId, required List<String> keys, String? userId})
→ Future<void>
-
~english
Removes custom attributes of a group member.
inherited
-
removeMembers(String groupId, List<String> members)
→ Future<void>
-
~english
Removes a member from the group.
inherited
-
requestToJoinPublicGroup(String groupId, {String? reason})
→ Future<void>
-
~english
Requests to join a group.
inherited
-
setMemberAttributes({required String groupId, required Map<String, String> attributes, String? userId})
→ Future<void>
-
~english
Sets custom attributes of a group member.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
unblockGroup(String groupId)
→ Future<void>
-
~english
Unblocks group messages.
inherited
-
unblockMembers(String groupId, List<String> members)
→ Future<void>
-
~english
Removes users from the group block list.
inherited
-
unMuteAllMembers(String groupId)
→ Future<void>
-
~english
Unmutes all members.
inherited
-
unMuteMembers(String groupId, List<String> members)
→ Future<void>
-
~english
Unmutes group members.
inherited
-
updateGroupAnnouncement(String groupId, String announcement)
→ Future<void>
-
~english
Updates the group announcement.
inherited
-
updateGroupExtension(String groupId, String extension)
→ Future<void>
-
~english
Updates the group extension field.
inherited
-
uploadGroupSharedFile(String groupId, String filePath)
→ Future<void>
-
~english
Uploads the shared file to the group.
inherited