setSelfInfo
Introduction
Modify the profile for current login user.
The callback of V2TimUserFullInfoCallback will be triggered, after modified success.
Parameter details
Parameter name | Parameter type | Required | Platform | Description |
---|---|---|---|---|
userFullInfo | V2TimUserFullInfo | yes | All | The profile info needs to be modified. |
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
final CoreServicesImpl coreInstance = TIMUIKitCore.getInstance();
V2TimUserFullInfo userFullInfo = V2TimUserFullInfo(
nickName: "",
allowType: 0,
birthday: 0,
customInfo: {"custom": "custom"},
faceUrl: "",
gender: 1,
level: 0,
role: 0,
selfSignature: "",
userID: "",
);
V2TimCallback setSelfInfoRes =
await coreInstance.setSelfInfo(userFullInfo: userFullInfo);
if (setSelfInfoRes.code == 0) {
}