useCameraDevices

function useCameraDevices(): CameraDevice[]

Use a list of all CameraDevices on this phone.

The hook automatically updates with the new devices as devices get added or removed to the phone - e.g. USB Cameras.

See

Example

const devices = useCameraDevices()
const backDevice = devices.find((d) => d.position === 'back')

On this page

No Headings