Retrieve the altitude from a SENSOR_ALTIMETER_READING event.
#include <bps/sensor.h>
BPS_API float sensor_event_get_altitude(bps_event_t *event)
BlackBerry 10.0.0
The SENSOR_ALTIMETER_READING event to get the altitude from.
The sensor_event_get_altitude() function gets the altitude from the specified SENSOR_ALTIMETER_READING event.
The altitude (in meters). NaN in the event of an error.