| class info |
| public final class AwarenessStatusCodes extends Object |
| 情景感知状态码。 |
| Return type | Method name |
| String | public static String getMessage(int statusCode) |
| Constant |
| public static final int AWARENESS_SUCCESS_CODE |
| 成功。 |
| 常数:0 |
| Constant |
| public static final int AWARENESS_UNKNOWN_ERROR_CODE |
| 未知的错误。 |
| 常数:10000 |
| Constant |
| public static final int AWARENESS_BINDER_ERROR_CODE |
| binder为空导致bind服务失败。 |
| 常数:10001 |
| Constant |
| public static final int AWARENESS_REGISTER_FAILED_CODE |
| 注册围栏失败。 |
| 常数:10002 |
| Constant |
| public static final int AWARENESS_TIMEOUT_CODE |
| 超时错误。例如,更新围栏超时,获取时间属性超时,获取信标状态超时,bind服务连接超时,等待Intent超时等。 |
| 常数:10003 |
| Constant |
| public static final int AWARENESS_COUNT_LIMIT_CODE |
| 次数限制错误(例如,单CP访问围栏达到最大次数限制。其中,围栏次数限制为200次)。 |
| 常数:10004 |
| Constant |
| public static final int AWARENESS_FREQUENCY_LIMIT_CODE |
| 访问围栏或快照频率限制(接口频率限制为1000次/小时或20次/5秒,5秒内累计注册围栏限制为500次)。 |
| 常数:10005 |
| Constant |
| public static final int AWARENESS_BARRIER_PARAMETER_ERROR_CODE |
| 围栏参数无效错误(addBarrier入参有误)。 |
| 常数:10006 |
| Constant |
| public static final int AWARENESS_REQUEST_ERROR_CODE |
| 请求参数错误(updateBarriers入参有误)。 |
| 常数:10007 |
| Constant |
| public static final int AWARENESS_AGC_FILE_ERROR |
| AGC文件错误。 |
| 常数:10008 |
| Constant |
| public static final int AWARENESS_RESULT_INVALID_ERROR |
| 从Awarreness Kit返回的结果无效(例如,获取耳机状态未知)。 |
| 常数:10009 |
| Constant |
| public static final int AWARENESS_REMOTE_EXCEPTION_ERROR |
| bind方法抛remote异常。 |
| 常数:10010 |
| Constant |
| public static final int AWARENESS_WAIT_CALLBACK_CODE |
| 等待service端回调。 |
| 常数:10011 |
| Constant |
| public static final int AWARENESS_INTERFACE_INVALID |
| 请求的接口已不再提供服务。 |
| 常数:10012 |
| Constant |
| public static final int AWARENESS_NO_ENOUGH_RESOURCE |
| 系统没有足够的资源。 |
| 常数:10013 |
| Constant |
| public static final int AWARENESS_SDK_VERSION_ERROR |
| SDK版本错误,需要检查SDK版本是否大于等于24。 |
| 常数:10100 |
| Constant |
| public static final int AWARENESS_LOCATION_PERMISSION_CODE |
| APP中定位权限被禁止。 |
| 常数:10101 |
| Constant |
| public static final int AWARENESS_LOCATION_CORE_PERMISSION_CODE |
| 华为移动服务定位权限被禁止。 |
| 常数:10102 |
| Constant |
| public static final int AWARENESS_BEHAVIOR_PERMISSION_CODE |
APP中活动识别权限被禁止。 常数:10103 |
| Constant |
| public static final int AWARENESS_BLUETOOTH_PERMISSION_CODE |
| APP中未申请蓝牙权限。 |
| 常数:10104 |
| Constant |
| public static final int AWARENESS_LOCATION_NOCACHE_CODE |
| Location无缓存。 |
| 常数:10200 |
| Constant |
| public static final int AWARENESS_LOCATION_NOT_AVAILABLE_CODE |
| Location服务找不到。 |
| 常数:10201 |
| Constant |
| public static final int AWARENESS_BEACON_NOT_AVAILABLE_CODE |
| 信标服务找不到。 |
| 常数:10300 |
| Constant |
| public static final int AWARENESS_BLUETOOTH_NOT_AVAILABLE_CODE |
| 蓝牙服务找不到。 |
| 常数:10400 |
| Constant |
| public static final int UPDATE_KIT_CODE |
| 情景感知服务需要更新。 |
| 常数:1212 |
| Constant |
| public static final int UPDATE_HMS_CODE |
| 华为移动服务需要更新。 |
| 常数:907135003 |
| Method |
| public static String getMessage(int statusCode) |
| 获取状态码信息。 |
Parameters
| Parameter name | Parameter desc |
| statusCode | 状态码常量。 |
Return
| Type | desc |
| String | 状态码信息。 |