camera_stop_viewfinder()

Stop using the viewfinder.

Synopsis:

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

Since:

BlackBerry 10.3.0

Arguments:

handle

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

Library:

libcamapi (For the qcc command, use the -l camapi option to link against this library)

Description:

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.

Returns:

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

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus