Stop using the viewfinder.
#include <camera/camera_api.h>
camera_error_t camera_stop_viewfinder(camera_handle_t handle)
BlackBerry 10.3.0
The handle returned by a call to the camera_open() function.
You can only stop the viewfinder 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.
As of CAMERA_API_VERSION 3 (BlackBerry 10.3.0), this function deprecates camera_stop_photo_viewfinder() and camera_stop_video_viewfinder(). For more information about new and deprecated viewfinder functionality, see Viewfinder modes.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.