Retrieve the illuminance from a SENSOR_LIGHT_READING event.
#include <bps/sensor.h>
BPS_API float sensor_event_get_illuminance(bps_event_t *event)
BlackBerry 10.0.0
The SENSOR_LIGHT_READING event to get the illuminance from.
The sensor_event_get_illuminance() function gets the illuminance from the specified SENSOR_LIGHT_READING event.
The illuminance (in lux) when the function completes successfully, NaN otherwise.