setSelfInfo
功能介绍
修改个人资料
参数详解
返回值
V2TimCallback
{
code : int
desc : String
}
返回值详解
名称 |
数值类型 |
描述 |
code |
int |
请求结果错误码 |
desc |
String |
请求结果描述 |
代码示例
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) {
}