CameraDeviceFactory

The CameraDeviceFactory allows getting CameraDevices, listening to device changes, and querying extensions or preferred Cameras.

See also

Properties

Link copied to clipboard

A list of all CameraDevices on this platform.

Link copied to clipboard

All CameraDevice combinations that are supported in Multi-Cam CameraSessions, or an empty list if the platform does not support Multi-Cam sessions.

Link copied to clipboard

The user's default preferred camera device, if any. Setting a device persists the preference between apps (iOS only, ignored on Android).

Functions

Link copied to clipboard

Add a listener to be called whenever the available cameraDevices change, for example when an external USB Camera gets plugged in or out.

Link copied to clipboard
abstract fun getCameraForId(id: String): CameraDevice?

Get the CameraDevice with the given unique id, or null if no such device exists.

Link copied to clipboard

Get the platform's default CameraDevice at the given position, if any.

Link copied to clipboard

Get all vendor-specific CameraExtensions the given camera supports.