setSelfInfo

Introduction

Set and modify the self info and profile.

V2TimUserFullInfoCallback callback will be triggered after modifying success.

Parameter details

Parameter name Parameter type Required Platform Description
userFullInfo V2TimUserFullInfo yes All The user info to set.

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.

Code example

    V2TimUserFullInfo userFullInfo = V2TimUserFullInfo(
      nickName: "", 
      allowType: 0,
      birthday: 0,
      customInfo: {"custom":"custom"},
      faceUrl: "",
      gender: 1,
      level: 0,
      role: 0,
      selfSignature: "",
      userID: "",
    );
    V2TimCallback setSelfInfoRes =
        await TencentImSDKPlugin.v2TIMManager.setSelfInfo(userFullInfo: userFullInfo);
    if (setSelfInfoRes.code == 0) {
    }

results matching ""

    No results matching ""