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)

Arguments:

type
The sensor to check support for.

Library:

libbps

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.