CameraProps

interface CameraProps

Extended by

Properties

cameraExtension?

optional cameraExtension: CameraExtension

colorSpace?

optional colorSpace: ColorSpace | "auto"

depthFormat?

optional depthFormat: CameraFormat | null

device


enableDistortionCorrection?

optional enableDistortionCorrection: boolean

enableLowLightBoost?

optional enableLowLightBoost: boolean

enableMultiCamSupport?

optional enableMultiCamSupport: boolean

enableSmoothAutoFocus?

optional enableSmoothAutoFocus: boolean

enableVideoHDR?

optional enableVideoHDR: boolean

format?

optional format: CameraFormat

fps?

optional fps: Range

getInitialExposureBias()?

optional getInitialExposureBias: () => number | undefined

getInitialZoom()?

optional getInitialZoom: () => number | undefined

isActive

isActive: boolean

mirrorMode?

optional mirrorMode: MirrorMode

onConfigured()?

optional onConfigured: () => void

Called whenever the CameraSession has been configured with new connections via configure(...) and connections to the individual outputs are formed.

This is a good place to check output capabilities, such as CameraVideoOutput.getSupportedVideoCodecs()


onError()?

optional onError: (error: Error) => void

Called whenever the CameraSession has encountered an error.


onInterruptionEnded()?

optional onInterruptionEnded: () => void

Called when a previous interruption has ended and the CameraSession is running uninterrupted again.


onInterruptionStarted()?

optional onInterruptionStarted: (interruption: InterruptionReason) => void

Called whenever the CameraSession has encountered an interruption of the given InterruptionReason. Interruptions are temporarily.


onStarted()?

optional onStarted: () => void

Called when the CameraSession has been started.


onStopped()?

optional onStopped: () => void

Called when the CameraSession has been stopped.


orientationSource?

optional orientationSource: OrientationSource | "custom"

Set a desired OrientationSource for automatically applying Orientation to all outputs, or 'custom' if you prefer to manually specify Orientation yourself.


outputs?

optional outputs: CameraOutput[]

videoStabilizationMode?

optional videoStabilizationMode: VideoStabilizationMode