Retrieve the focus state of the camera.
camera_error_t camera_get_focus_state(camera_handle_t handle, camera_focusstate_t *state, camera_region_t *region)
The handle returned by a call to the camera_open() function.
A pointer that is populated with the focus state of the camera.
A pointer that is populated with the region that the focus has locked to. Only valid when state is CAMERA_FOCUSSTATE_LOCKED.
The focus state and the region of focus when the function completes successfully. Typically, you call this function when a status callback of type CAMERA_STATUS_FOCUS_CHANGE is received.
CAMERA_OK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.