CameraDeviceInfo

constructor(label: String, deviceId: String, facingMode: FacingMode?)

Parameters

label

the name to show in a picker, such as Camera 0 (Front Camera).

deviceId

Camera2's camera id — "0", "1", and so on.

facingMode

which way the lens points, or null for a lens that is neither front nor back, such as an external or USB camera.