sensor_exists()
Check for sensor existence.
Synopsis:
#include <sensor/libsensor.h>
bool sensor_exists(sensor_type_e sensor_type)
Arguments:
- sensor_type
-
The sensor type you wish to check for existence. Sensor types are defined in sensor/sensor.h.
Library:
libsensorDescription:
Returns:
bool True if a sensor is currently available for use on your device, false otherwise.