V2TIMGroupManager class Manager

群组高级接口,包含了群组的高级功能,例如群成员邀请、非群成员申请进群等操作接口。

createGroup创建自定义群组(高级版本:可以指定初始的群成员)

getJoinedGroupList获取当前用户已经加入的群列表

getGroupsInfo拉取群资料

setGroupInfo修改群资料

setReceiveMessageOpt修改群消息接收选项

initGroupAttributes初始化群属性,会清空原有的群属性列表

setGroupAttributes设置群属性。已有该群属性则更新其 value 值,没有该群属性则添加该属性。

deleteGroupAttributes删除指定群属性,keys 传 null 则清空所有群属性。

getGroupAttributes获取指定群属性,keys 传 null 则获取所有群属性。

getGroupMemberList获取群成员列表

getGroupMembersInfo获取指定的群成员资料

setGroupMemberInfo修改指定的群成员资料

muteGroupMember禁言(只有管理员或群主能够调用)

inviteUserToGroup邀请他人入群

kickGroupMember踢人

setGroupMemberRole切换群成员的角色。

transferGroupOwner转让群主

getGroupApplicationList获取加群的申请列表

acceptGroupApplication同意某一条加群申请

refuseGroupApplication拒绝某一条加群申请

setGroupApplicationRead标记申请列表为已读

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({String groupID, String reason, String fromUser, String toUser, int addTime, int type}) Future<V2TimCallback>
同意某一条加群申请
createGroup({String groupID, String groupType, String groupName, String notification, String introduction, String faceUrl, bool isAllMuted, int addOpt, List<V2TimMember> memberList}) Future<V2TimValueCallback<String>>
创建自定义群组(高级版本:可以指定初始的群成员) [...]
deleteGroupAttributes({String groupID, List<String> keys}) Future<V2TimCallback>
删除指定群属性,keys 传 null 则清空所有群属性。
getGroupApplicationList() Future<V2TimValueCallback<V2TimGroupApplicationResult>>
获取加群的申请列表
getGroupAttributes({String groupID, List<String> keys}) Future<V2TimValueCallback<Map<String, String>>>
获取指定群属性,keys 传 null 则获取所有群属性。
getGroupMemberList({String groupID, int filter, double nextSeq}) Future<V2TimValueCallback<V2TimGroupMemberInfoResult>>
获取群成员列表 [...]
getGroupMembersInfo({String groupID, List<String> memberList}) Future<V2TimValueCallback<List<V2TimGroupMemberFullInfo>>>
获取指定的群成员资料
getGroupsInfo({List<String> groupIDList}) Future<V2TimValueCallback<List<V2TimGroupInfoResult>>>
拉取群资料 [...]
getJoinedGroupList() Future<V2TimValueCallback<List<V2TimGroupInfo>>>
获取当前用户已经加入的群列表 [...]
initGroupAttributes({String groupID, Map<String, String> attributes}) Future<V2TimCallback>
初始化群属性,会清空原有的群属性列表 [...]
inviteUserToGroup({String groupID, List<String> userList}) Future<V2TimValueCallback<List<V2TimGroupMemberOperationResult>>>
邀请他人入群 [...]
kickGroupMember({String groupID, List<String> memberList, String reason}) Future<V2TimCallback>
踢人 [...]
muteGroupMember({String groupID, String userID, int seconds}) Future<V2TimCallback>
禁言(只有管理员或群主能够调用)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
refuseGroupApplication({String groupID, String reason, String fromUser, String toUser, int addTime, int type}) Future<V2TimCallback>
拒绝某一条加群申请
setGroupApplicationRead() Future<V2TimCallback>
标记申请列表为已读
setGroupAttributes({String groupID, Map<String, String> attributes}) Future<V2TimCallback>
设置群属性。已有该群属性则更新其 value 值,没有该群属性则添加该属性。
setGroupInfo({String groupID, String groupType, String groupName, String notification, String introduction, String faceUrl, bool isAllMuted, int addOpt}) Future<V2TimCallback>
修改群资料
setGroupMemberInfo({String groupID, String userID, String nameCard}) Future<V2TimCallback>
修改指定的群成员资料
setGroupMemberRole({String groupID, String userID, int role}) Future<V2TimCallback>
切换群成员的角色。 [...]
setReceiveMessageOpt({String groupID, int opt}) Future<V2TimCallback>
修改群消息接收选项 [...]
toString() String
Returns a string representation of this object.
inherited
transferGroupOwner({String groupID, String userID}) Future<V2TimCallback>
转让群主 [...]

Operators

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