V2TIMGroupManager class Null safety Manager

Advanced group APIs, including APIs for advanced group features such as group member invitation and group joining request

createGroupCreate a custom group (The advanced version API allows you to specify initial group members.)

getJoinedGroupListGet the list of groups the current user has joined

getGroupsInfoPull the profiles of groups

setGroupInfoModify group profiles

setReceiveMessageOptModify the group message receiving option

initGroupAttributesInitialize group attributes. This will clear the existing group attribute list.

setGroupAttributesSet group attributes. If the group attributes already exist, their values are updated. Otherwise, the group attributes are added.

deleteGroupAttributesDelete specified group attributes (If null is passed in for keys, all group attributes are cleared.)

getGroupAttributesGet specified group attributes (If null is passed in for keys, all group attributes are obtained.)

getGroupMemberListGet the group member list

getGroupMembersInfoGet the profiles of specified group members

setGroupMemberInfoModify the profiles of specified group members

muteGroupMemberMute (this API can be called by the admin or group owner)

inviteUserToGroupInvite users to a group

kickGroupMemberRemove a member from a group

setGroupMemberRoleSet the role for a group member

transferGroupOwnerTransfer the ownership of a group

getGroupApplicationListGet the group joining request list

acceptGroupApplicationApprove a group joining request

refuseGroupApplicationReject a group joining request

setGroupApplicationReadMark the group joining request list as read

searchGroupByID Search group information by group ID

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

acceptGroupApplication({required String groupID, String? reason, required String fromUser, required String toUser, int? addTime, GroupApplicationTypeEnum? type, String? webMessageInstance}) Future<V2TimCallback>
Approve a group joining request
createGroup({String? groupID, required String groupType, required String groupName, String? notification, String? introduction, String? faceUrl, bool? isAllMuted, GroupAddOptTypeEnum? addOpt, List<V2TimGroupMember>? memberList}) Future<V2TimValueCallback<String>>
Create a custom group (The advanced version API allows you to specify initial group members.) [...]
deleteGroupAttributes({required String groupID, required List<String> keys}) Future<V2TimCallback>
Delete specified group attributes (If null is passed in for keys, all group attributes are cleared.)
getGroupApplicationList() Future<V2TimValueCallback<V2TimGroupApplicationResult>>
Get the group joining request list [...]
getGroupAttributes({required String groupID, List<String>? keys}) Future<V2TimValueCallback<Map<String, String>>>
Get specified group attributes (If null is passed in for keys, all group attributes are obtained.)
getGroupMemberList({required String groupID, required GroupMemberFilterTypeEnum filter, required String nextSeq, int count = 15, int offset = 0}) Future<V2TimValueCallback<V2TimGroupMemberInfoResult>>
Get the group member list [...]
getGroupMembersInfo({required String groupID, required List<String> memberList}) Future<V2TimValueCallback<List<V2TimGroupMemberFullInfo>>>
Get the profiles of specified group members
getGroupOnlineMemberCount({required String groupID}) Future<V2TimValueCallback<int>>
Get the online number of the specified group Please note: [...]
getGroupsInfo({required List<String> groupIDList}) Future<V2TimValueCallback<List<V2TimGroupInfoResult>>>
Pull the profiles of groups [...]
getJoinedGroupList() Future<V2TimValueCallback<List<V2TimGroupInfo>>>
Get the list of groups the current user has joined [...]
initGroupAttributes({required String groupID, required Map<String, String> attributes}) Future<V2TimCallback>
This interface has been moved to messageManager, 2020-6-4 Modify group message receiving options [...]
inviteUserToGroup({required String groupID, required List<String> userList}) Future<V2TimValueCallback<List<V2TimGroupMemberOperationResult>>>
Invite users to a group [...]
kickGroupMember({required String groupID, required List<String> memberList, String? reason}) Future<V2TimCallback>
Remove a member from a group [...]
muteGroupMember({required String groupID, required String userID, required int seconds}) Future<V2TimCallback>
Mute (this API can be called by the admin or group owner)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
refuseGroupApplication({required String groupID, String? reason, required String fromUser, required String toUser, required int addTime, required GroupApplicationTypeEnum type, String? webMessageInstance}) Future<V2TimCallback>
Reject a group joining request [...]
searchGroupByID({required String groupID}) Future<V2TimValueCallback<V2TimGroupInfo>>
Search groups by groupID Note: Friends work groups cannot be searched Only web supports this search method
searchGroupMembers({required V2TimGroupMemberSearchParam param}) Future<V2TimValueCallback<V2GroupMemberInfoSearchResult>>
Search for group members [...]
searchGroups({required V2TimGroupSearchParam searchParam}) Future<V2TimValueCallback<List<V2TimGroupInfo>>>
Search group information (requires you to purchase the flagship package) [...]
setGroupApplicationRead() Future<V2TimCallback>
Mark the group joining request list as read [...]
setGroupAttributes({required String groupID, required Map<String, String> attributes}) Future<V2TimCallback>
Set group attributes. If the group attributes already exist, their values are updated. Otherwise, the group attributes are added.
setGroupInfo({required V2TimGroupInfo info}) Future<V2TimCallback>
Modify group profiles [...]
setGroupMemberInfo({required String groupID, required String userID, String? nameCard, Map<String, String>? customInfo}) Future<V2TimCallback>
Modify the profiles of specified group members
setGroupMemberRole({required String groupID, required String userID, required GroupMemberRoleTypeEnum role}) Future<V2TimCallback>
Set the role for a group member [...]
toString() String
A string representation of this object. [...]
inherited
transferGroupOwner({required String groupID, required String userID}) Future<V2TimCallback>
Transfer the ownership of a group [...]

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited