CameraSessionConnection

data class CameraSessionConnection(val input: CameraDeviceOrPosition, val outputs: List<CameraOutputConfiguration>, val constraints: List<Constraint> = emptyList(), val initialZoom: Double? = null, val initialExposureBias: Double? = null, val onSessionConfigSelected: (config: CameraSessionConfig) -> Unit? = null)

Specifies a single Camera input stream connection streaming into zero or more outputs.

Constructors

Link copied to clipboard
constructor(input: CameraDeviceOrPosition, outputs: List<CameraOutputConfiguration>, constraints: List<Constraint> = emptyList(), initialZoom: Double? = null, initialExposureBias: Double? = null, onSessionConfigSelected: (config: CameraSessionConfig) -> Unit? = null)

Properties

Link copied to clipboard

Constraints specifically for this connection, ranked by priority.

Link copied to clipboard
Link copied to clipboard

The initial CameraController.zoom value, later adjustable via CameraController.setZoom.

Link copied to clipboard

The input device of this connection, streaming into all outputs. Pass a TargetCameraPosition to automatically select the default CameraDevice at the given position.

Link copied to clipboard

Called once the constraints have been resolved into a valid CameraSessionConfig, for example to grey out buttons of features that ended up not being enabled.

Link copied to clipboard

All output configurations the input device will stream into.