addOnCameraDevicesChangedListener

function addOnCameraDevicesChangedListener(listener: (newDevices: CameraDevice[]) => void): ListenerSubscription

Adds a listener that gets called whenever the list of available CameraDevices changes - for example when a USB Camera is plugged in or out.

The returned ListenerSubscription must be removed via remove() when no longer needed.

See

useCameraDevices

Deprecated

Use the hooks API, or call VisionCamera.createDeviceFactory() yourself.

On this page

No Headings