onRegStatusUpdate(上报注册状态)
事件描述
用户在发起注册之后,会通过该事件向用户上报两次注册状态,第一次通知当前帐号注册状态为:注册中。第二次通知当前帐号注册状态为:已注册或未注册。
事件示例
注册成功:
{
"description" : "TSDK_E_LOGIN_EVT_LOGIN_SUCCESS",
"notify" : 1004,
"param" : {
"loginSuccessInfo" : {"confEnvType":0},
"serviceAccountType" : 4,
"userId" : 0
}
}
注册失败:
{
"description": "TSDK_E_LOGIN_EVT_LOGIN_FAILED",
"notify": 1005,
"param": {
"loginFailedInfo": {
"lockInterval": 0,
"reasonCode": 50331750,
"reasonDescription": "[TSDK_E_CALL_ERR_REASON_CODE_NOTFOUND]:Indicates 404 not found",
"residualRetryTimes": 0
},
"serviceAccountType": 0,
"userId": 0
}
}
参数描述
|
参数名 |
类型 |
描述 |
|---|---|---|
|
description |
String |
当前请求描述。 |
|
notify |
Number |
内部事件编号。 |
|
param |
事件内容。 |