目录

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.

Constant Summary

TypeNameDesc
intAWA_CAP_CODE_HEADSETHeadset awareness capability.
intAWA_CAP_CODE_LOCATION_CAPTURELocation awareness (capture) capability.
intAWA_CAP_CODE_LOCATION_NORMAL_BARRIERLocation awareness (normal barrier) capability.
intAWA_CAP_CODE_LOCATION_LOW_POWER_BARRIERLocation awareness (low-power barrier) capability.
intAWA_CAP_CODE_BEHAVIORBehavior awareness capability.
intAWA_CAP_CODE_TIMETime awareness capability.
intAWA_CAP_CODE_AMBIENT_LIGHTAmbient light awareness capability.
intAWA_CAP_CODE_WEATHERWeather awareness capability.
intAWA_CAP_CODE_BEACONBeacon awareness capability.
intAWA_CAP_CODE_INCAR_BLUETOOTHBluetooth car stereo awareness capability.

Constants

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

Public Method Summary

Return typeMethod name
abstract int[]getCapabilities()

Public Methods

Method
public abstract int[] getCapabilities()
Obtains status constants of capabilities supported by Awareness Kit on the current device.

Return

Typedesc
int[]Status constants of capabilities supported by Awareness Kit on the current device.