| class info |
| public interface CapabilityStatus |
| Capability support status API. The getCapabilities method provided by this API can be called to obtain capabilities supported by Awareness Kit on the current device. This API defines 10 status constants, which represent the capabilities respectively. |
| Type | Name | Desc |
| int | AWA_CAP_CODE_HEADSET | Headset awareness capability. |
| int | AWA_CAP_CODE_LOCATION_CAPTURE | Location awareness (capture) capability. |
| int | AWA_CAP_CODE_LOCATION_NORMAL_BARRIER | Location awareness (normal barrier) capability. |
| int | AWA_CAP_CODE_LOCATION_LOW_POWER_BARRIER | Location awareness (low-power barrier) capability. |
| int | AWA_CAP_CODE_BEHAVIOR | Behavior awareness capability. |
| int | AWA_CAP_CODE_TIME | Time awareness capability. |
| int | AWA_CAP_CODE_AMBIENT_LIGHT | Ambient light awareness capability. |
| int | AWA_CAP_CODE_WEATHER | Weather awareness capability. |
| int | AWA_CAP_CODE_BEACON | Beacon awareness capability. |
| int | AWA_CAP_CODE_INCAR_BLUETOOTH | Bluetooth car stereo awareness capability. |
| Constant |
| public static final int AWA_CAP_CODE_HEADSET |
| Headset awareness capability. |
| Constant value: 20000 |
| Constant |
| public static final int AWA_CAP_CODE_LOCATION_CAPTURE |
| Location awareness (capture) capability. |
| Constant value: 20001 |
| Constant |
| public static final int AWA_CAP_CODE_LOCATION_NORMAL_BARRIER |
| Location awareness (normal barrier) capability. |
| Constant value: 20002 |
| Constant |
| public static final int AWA_CAP_CODE_LOCATION_LOW_POWER_BARRIER |
| Location awareness (low-power barrier) capability. |
| Constant value: 20003 |
| Constant |
| public static final int AWA_CAP_CODE_BEHAVIOR |
| Behavior awareness capability. |
| Constant value: 20004 |
| Constant |
| public static final int AWA_CAP_CODE_TIME |
| Time awareness capability. |
| Constant value: 20005 |
| Constant |
| public static final int AWA_CAP_CODE_AMBIENT_LIGHT |
| Ambient light awareness capability. |
| Constant value: 20006 |
| Constant |
| public static final int AWA_CAP_CODE_WEATHER |
| Weather awareness capability. |
| Constant value: 20007 |
| Constant |
| public static final int AWA_CAP_CODE_BEACON |
| Beacon awareness capability. |
| Constant value: 20008 |
| Constant |
| public static final int AWA_CAP_CODE_INCAR_BLUETOOTH |
| Bluetooth car stereo awareness capability. |
| Constant value: 20009 |
| Return type | Method name |
| abstract int[] | getCapabilities() |
| Method |
| public abstract int[] getCapabilities() |
| Obtains status constants of capabilities supported by Awareness Kit on the current device. |
Return
| Type | desc |
| int[] | Status constants of capabilities supported by Awareness Kit on the current device. |