diff options
Diffstat (limited to 'include/android')
-rw-r--r-- | include/android/sensor.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/android/sensor.h b/include/android/sensor.h index 77a5a1c..d58c460 100644 --- a/include/android/sensor.h +++ b/include/android/sensor.h @@ -210,11 +210,18 @@ int ASensorManager_getSensorList(ASensorManager* manager, ASensorList* list); /* * Returns the default sensor for the given type, or NULL if no sensor - * of that type exist. + * of that type exists. */ ASensor const* ASensorManager_getDefaultSensor(ASensorManager* manager, int type); /* + * Returns the default sensor with the given type and wakeUp properties or NULL if no sensor + * of this type and wakeUp properties exists. + */ +ASensor const* ASensorManager_getDefaultSensorEx(ASensorManager* manager, int type, + bool wakeUp); + +/* * Creates a new sensor event queue and associate it with a looper. */ ASensorEventQueue* ASensorManager_createEventQueue(ASensorManager* manager, @@ -321,6 +328,11 @@ const char* ASensor_getStringType(ASensor const* sensor); */ int ASensor_getReportingMode(ASensor const* sensor); +/* + * Returns true if this is a wake up sensor, false otherwise. + */ +bool ASensor_isWakeUpSensor(ASensor const* sensor); + #ifdef __cplusplus }; #endif |