camera_stop_viewfinder()

Updated: October 26, 2022

Stop the viewfinder

Synopsis:

#include <camera/camera_api.h>
camera_error_t camera_stop_viewfinder(camera_handle_t handle)

Arguments:

handle
The handle returned by a call to the camera_open() function.

Library:

libcamapi

Description:

You can stop the viewfinder only after you have successfully started it using camera_start_viewfinder(). After you stop running the viewfinder, you can no longer capture images or record videos.

Returns:

CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.