| Updated: October 28, 2024 | 
Retrieve the focus state of the camera
#include <camera/camera_3a.h>
camera_error_t camera_get_focus_state(camera_handle_t handle,
                                      camera_focusstate_t *state,
                                      camera_region_t *region)
Determine the focus state and the region of focus. Typically, you call this function when a status event of type CAMERA_STATUS_FOCUS_CHANGE is received.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.