setFriendInfo
Introduction
Set the friend info for a specific friend.
Parameter details
Parameter name |
Parameter type |
Required |
Platform |
Description |
userID |
String |
yes |
All |
The ID of the target user. |
friendRemark |
String |
no |
All |
The remark for the target user. |
friendCustomInfo |
Map< String, String > |
no |
All |
The custom info for the target user. |
Returned template
V2TimCallback
{
code : int
desc : String
}
Return value details
Code example
V2TimCallback setFriendInfoRes = await TencentImSDKPlugin.v2TIMManager
.getFriendshipManager()
.setFriendInfo(
userID: "userID",
friendRemark: "",
friendCustomInfo: {"custom": "custom"});
if (setFriendInfoRes.code == 0) {
}