sensor_exists()

Check for sensor existence.

Synopsis:

#include <sensor/libsensor.h>
 
bool sensor_exists(sensor_type_e sensor_type)

Since:

BlackBerry 10.0.0

Arguments:

sensor_type

The sensor type you wish to check for existence. Sensor types are defined in sensor/sensor.h.

Library:

libsensor (For the qcc command, use the -l sensor option to link against this library)

Description:

Returns:

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

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus