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:

libsensor

Description:

Returns:

True if a sensor is currently available for use on your device, false otherwise.

Last modified: 2013-12-21

comments powered by Disqus