Class Info |
|---|
public class HealthKitAuthResult extends Result 登录授权流程返回结果类。 |
Qualifier and Type | Method Name and Description |
|---|---|
HealthKitAuthResult | fromJson(String json) 将JSON字符串转换为HealthKitAuthResult对象。 |
AuthAccount | 获取授权结果返回的账号信息。 |
int | 获取授权流程返回的错误码。 |
boolean | 判断授权流程是否成功。 |
void | setAuthAccount(AuthAccount authAccount) 设置返回结果中的账号信息。 |
String | toJson() 将HealthKitAuthResult对象转换为JSON字符串。 |
Method |
|---|
public HealthKitAuthResult fromJson(String json) throws JSONException 将JSON字符串转换为HealthKitAuthResult对象。 |
Parameters
Name | Description |
|---|---|
json | 表示HealthKitAuthResult对象的JSON字符串。 |
Returns
Type | Description |
|---|---|
HealthKitAuthResult | HealthKitAuthResult对象。 |
Throws
Name | Description |
|---|---|
JSONException | JSON解析异常。 |
Method |
|---|
public AuthAccount getAuthAccount() 获取授权结果返回的账号信息。 |
Returns
Type | Description |
|---|---|
AuthAccount | 授权结果返回的账号信息。 |
Method |
|---|
public int getErrorCode() 获取授权流程返回的错误码。 |
Returns
Type | Description |
|---|---|
int | 授权流程返回的错误码。 |
Method |
|---|
public boolean isSuccess() 判断授权流程是否成功。 |
Returns
Type | Description |
|---|---|
boolean | 授权流程是否成功。
|