tencent cloud

Chat

Flutter

下载
聚焦模式
字号
最后更新时间: 2025-04-16 14:52:11

Feature Description

The methods to manipulate the group member profile are in the TencentImSDKPlugin.v2TIMManager.getGroupManager() core class.

Getting the Profile of a Group Member

Call getGroupMembersInfo (Details) to get the group member profile. This API supports passing in multiple userID values at a time to batch get group member profiles and therefore improve the network transfer efficiency.
Sample code:
// Get the group member profile
V2TimValueCallback<List<V2TimGroupMemberFullInfo>> memberInfos = await groupManager.getGroupMembersInfo(groupID: "groupID", memberList: ["id1"]);


Modifying the Profile of a Group Member

The group owner or admin can call the setGroupMemberInfo API (Details) to modify the group name card (nameCard), custom field (customInfo), and other information of a group member.
Sample code:
// Set the group member profile
groupManager.setGroupMemberInfo(groupID: "",userID: "",nameCard: "",customInfo: {});


帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈