react-native-vision-cameraFunctions
getAllCameraDevices
function getAllCameraDevices(): CameraDevice[]Returns all CameraDevices currently available on this phone.
This is a synchronous snapshot - it only contains devices that have already been
discovered. If you want to reactively listen to device changes (e.g. when a
USB Camera is plugged in or out), use addOnCameraDevicesChangedListener
or the useCameraDevices hook instead.
See
addOnCameraDevicesChangedListener
Adds a listener that gets called whenever the list of available CameraDevices changes - for example when a USB Camera is plugged in or out.
getCameraDevice
Get the best matching Camera device that best satisfies your requirements using a sorting filter, or `undefined` if not Cameras are available on this platform.