V2TIMGroupManager class Manager
群组高级接口,包含了群组的高级功能,例如群成员邀请、非群成员申请进群等操作接口。
createGroup创建自定义群组(高级版本:可以指定初始的群成员)
getJoinedGroupList获取当前用户已经加入的群列表
getGroupsInfo拉取群资料
setGroupInfo修改群资料
setReceiveMessageOpt修改群消息接收选项
initGroupAttributes初始化群属性,会清空原有的群属性列表
setGroupAttributes设置群属性。已有该群属性则更新其 value 值,没有该群属性则添加该属性。
deleteGroupAttributes删除指定群属性,keys 传 null 则清空所有群属性。
getGroupAttributes获取指定群属性,keys 传 null 则获取所有群属性。
getGroupMemberList获取群成员列表
getGroupMembersInfo获取指定的群成员资料
setGroupMemberInfo修改指定的群成员资料
muteGroupMember禁言(只有管理员或群主能够调用)
inviteUserToGroup邀请他人入群
setGroupMemberRole切换群成员的角色。
getGroupApplicationList获取加群的申请列表
acceptGroupApplication同意某一条加群申请
refuseGroupApplication拒绝某一条加群申请
setGroupApplicationRead标记申请列表为已读
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptGroupApplication(
{required String groupID, String? reason, required String fromUser, required String toUser, int? addTime, int? type}) → Future< V2TimCallback> - 同意某一条加群申请
-
createGroup(
{String? groupID, required String groupType, required String groupName, String? notification, String? introduction, String? faceUrl, bool? isAllMuted, int? addOpt, List< Map> ? memberList}) → Future<V2TimValueCallback< String> > - 创建自定义群组(高级版本:可以指定初始的群成员)
-
deleteGroupAttributes(
{required String groupID, required List< String> keys}) → Future<V2TimCallback> - 删除指定群属性,keys 传 null 则清空所有群属性。
-
getGroupApplicationList(
) → Future< V2TimValueCallback< V2TimGroupApplicationResult> > - 获取加群的申请列表
-
getGroupAttributes(
{required String groupID, required List< String> keys}) → Future<V2TimValueCallback< Map< >String, String> > - 获取指定群属性,keys 传 null 则获取所有群属性。
-
getGroupMemberList(
{required String groupID, required int filter, required int nextSeq}) → Future< V2TimValueCallback< V2TimGroupMemberInfoResult> > - 获取群成员列表
-
getGroupMembersInfo(
{required String groupID, required List< String> memberList}) → Future<V2TimValueCallback< List< >V2TimGroupMemberFullInfo> > - 获取指定的群成员资料
-
getGroupOnlineMemberCount(
{required String groupID}) → Future< V2TimValueCallback< int> > - 获取指定群属性,keys 传 null 则获取所有群属性。
-
getGroupsInfo(
{required List< String> groupIDList}) → Future<V2TimValueCallback< List< >V2TimGroupInfoResult> > - 拉取群资料
-
getJoinedGroupList(
) → Future< V2TimValueCallback< List< >V2TimGroupInfo> > - 获取当前用户已经加入的群列表
-
initGroupAttributes(
{required String groupID, required Map< String, String> attributes}) → Future<V2TimCallback> - 初始化群属性,会清空原有的群属性列表
-
inviteUserToGroup(
{required String groupID, required List< String> userList}) → Future<V2TimValueCallback< List< >V2TimGroupMemberOperationResult> > - 邀请他人入群
-
kickGroupMember(
{required String groupID, required List< String> memberList, String? reason}) → Future<V2TimCallback> - 踢人
-
muteGroupMember(
{required String groupID, required String userID, required int seconds}) → Future< V2TimCallback> - 禁言(只有管理员或群主能够调用)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refuseGroupApplication(
{required String groupID, String? reason, required String fromUser, required String toUser, required int addTime, required int type}) → Future< V2TimCallback> - 拒绝某一条加群申请
-
setGroupApplicationRead(
) → Future< V2TimCallback> - 标记申请列表为已读
-
setGroupAttributes(
{required String groupID, required Map< String, String> attributes}) → Future<V2TimCallback> - 设置群属性。已有该群属性则更新其 value 值,没有该群属性则添加该属性。
-
setGroupInfo(
{required String groupID, String? groupType, String? groupName, String? notification, String? introduction, String? faceUrl, bool? isAllMuted, int? addOpt, Map< String, String> ? customInfo}) → Future<V2TimCallback> - 修改群资料
-
setGroupMemberInfo(
{required String groupID, String? userID, String? nameCard, Map< String, String> ? customInfo}) → Future<V2TimCallback> - 修改指定的群成员资料
-
setGroupMemberRole(
{required String groupID, required String userID, required int role}) → Future< V2TimCallback> - 切换群成员的角色。
-
setReceiveMessageOpt(
{String? groupID, int? opt}) → Future< V2TimCallback> - 修改群消息接收选项
-
toString(
) → String -
A string representation of this object.
inherited
-
transferGroupOwner(
{required String groupID, required String userID}) → Future< V2TimCallback> - 转让群主
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited