Enable the status event.
camera_error_t camera_enable_status_event(camera_handle_t handle, camera_eventkey_t *key, struct sigevent *event)
The handle returned by a call to the camera_open() function.
A pointer to a returned camera_eventkey_t value. This argument is required for subsequent function calls to identify the proper event.
A pointer to a struct sigevent. The struct sigevent must be initialized by the caller. This is the struct sigevent that will be delivered when a status change occurs. You can then retrieve the specific status details using camera_get_status_details().
Library:libcamapi (For the qcc command, use the -l camapi option to link against this library)
Use this function to enable the status event. The status event is delivered whenever there is additional status information to be reported by the camera. Such status information may include changes in focus state, whether the camera has powered off, or other events detailed by the ::camera_status_t enumerated type. After a status event is delivered, you can retrieve specific details using camera_get_status_details(). This is the same status information that is delivered to your status_callback function registered when you started the viewfinder using camera_start_viewfinder(), or started a capture using camera_take_photo(), camera_take_burst(), camera_start_burst(), camera_start_encode() or camera_start_video().
Call this function when you are using the Camera API in event mode. For more information, see About event mode.
Use camera_disable_event() to disable an event when you no longer require status events to be delivered.
It is not possible to receive status callbacks prior to starting the viewfinder, since callback functions are attached using camera_start_viewfinder(). Status events, however, may be enabled at any time after opening the camera.
Last modified: 2014-11-11