camera_has_feature()

Retrieve a list of all available features on the camera.

Synopsis:

#include <camera/camera_api.h>
 
bool camera_has_feature(camera_handle_t handle, camera_feature_t feature)

Arguments:

handle

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

feature

The specific feature to query.

Library:

libcamapi

Description:

The availability of a feature does not mean that the feature is usable. For example, this function may indicate that physical flash is available, but the feature actually may not be used until the viewfinder is active.

Returns:

true when the specified feature is supported by the device, otherwise a value of false.