sensor_is_supported()

Indicate whether a sensor type is supported.

Synopsis:

#include <bps/sensor.h>
 
BPS_API bool sensor_is_supported(sensor_type_t type)

Since:

BlackBerry 10.0.0

Arguments:

type

The sensor to check support for.

Library:

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

Description:

The sensor_is_supported() function indicates whether the specified sensor type is supported on the device.

Returns:

true if the sensor type is supported on the device, false if the sensor type is not supported on the device.

Last modified: 2014-05-14



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

comments powered by Disqus