sensor_new()

Create a new sensor of the type specified.

Synopsis:

#include <sensor/libsensor.h>
 
sensor_t* sensor_new(sensor_type_e sensor_type)

Since:

BlackBerry 10.0.0

Arguments:

sensor_type

The sensor type you wish to create a handle for. 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:

sensor_t* A pointer to the sensor if successful, otherwise NULL. You'll need to pass this handle to many of the sensor functions.

Last modified: 2014-05-14



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

comments powered by Disqus