configure

abstract suspend fun configure(connections: List<CameraSessionConnection>, config: CameraSessionConfiguration = CameraSessionConfiguration()): List<CameraController>

Configures the CameraSession with the given connections, and returns one CameraController per CameraSessionConnection.

Multiple connections are only allowed in a multi-cam session, with device combinations listed in CameraDeviceFactory.supportedMultiCamDeviceCombinations.

Throws

If Camera permission has not been granted, if multiple connections are given to a single-cam session, or if the configuration is not supported.