sensor_event_get_illuminance()

Retrieve the illuminance from a SENSOR_LIGHT_READING event.

Synopsis:

#include <bps/sensor.h>
 
BPS_API float sensor_event_get_illuminance(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The SENSOR_LIGHT_READING event to get the illuminance from.

Library:

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

Description:

The sensor_event_get_illuminance() function gets the illuminance from the specified SENSOR_LIGHT_READING event.

Returns:

The illuminance (in lux) when the function completes successfully, NaN otherwise.

Last modified: 2014-05-14



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

comments powered by Disqus