Retrieve the flash power level.
camera_error_t camera_get_flash_level(camera_handle_t handle, uint32_t *percent)
The handle returned by a call to the camera_open() function.
A pointer to the returned percentage value.
Library:libcamapi (For the qcc command, use the -l camapi option to link against this library)
Use this function to get the available flash power level, as a percentage of the maximum. A non-zero level indicates that there is sufficient power available to fire the flash (see camera_config_flash()). You can listen for CAMERA_STATUS_FLASH_LEVEL_CHANGE status events to know when the flash power level has changed from its previous value.
The viewfinder must be running before using this function.
Last modified: 2014-06-24