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

name type description
code int Request result: Error codes. 0 means success.
desc String The description of the error. It will be empty if success.V2TimMsgCreateInfoResult

Code example

    V2TimCallback setFriendInfoRes = await TencentImSDKPlugin.v2TIMManager
        .getFriendshipManager()
        .setFriendInfo(
            userID: "userID",
            friendRemark: "",
            friendCustomInfo: {"custom": "custom"});
    if (setFriendInfoRes.code == 0) {
    }

results matching ""

    No results matching ""