Updated: April 19, 2023 |
Determine whether a feature is available on the camera
#include <camera/camera_api.h>
bool camera_has_feature(camera_handle_t handle, camera_feature_t feature)
The availability of a feature does not mean that the feature is usable. For example, this function may indicate that manual white balance is available, but the feature actually may not be used until the viewfinder is active. To determine if a feature can be used in the camera's current state, use the camera_can_feature() function.
The set of available features may vary based on the current viewfinder mode. For more information, see Viewfinder Mode.
true when the specified feature is available on the camera, otherwise false.