CameraSessionController

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The outputs of the current capture session

Functions

Link copied to clipboard
suspend fun addTarget(target: Surface): Boolean

Adds a target to the current capture session

Link copied to clipboard
suspend fun addTargets(targets: List<Surface>): Boolean

Adds targets to the current capture session

Link copied to clipboard
suspend fun createCameraControllerForOutputs(dynamicRange: Long = this.dynamicRange, outputs: List<Surface> = this.outputs): CameraSessionController

Creates a new capture session with the given outputs.

Link copied to clipboard

Gets a setting from the current capture request.

Link copied to clipboard
fun hasOutput(surface: Surface): Boolean

Whether the current capture request has an output.

Link copied to clipboard
suspend fun hasTarget(surface: Surface): Boolean

Whether the current capture request has a target

Link copied to clipboard
fun release()
Link copied to clipboard
suspend fun removeTarget(target: Surface)

Removes a target from the current capture session

Link copied to clipboard
suspend fun removeTargets(targets: List<Surface>)

Removes targets from the current capture session

Link copied to clipboard
fun setBurstSession(cameraCaptureCallback: CameraCaptureSession.CaptureCallback = captureCallback)
Link copied to clipboard
fun setRepeatingSession(cameraCaptureCallback: CameraCaptureSession.CaptureCallback = captureCallback)

Sets a repeating session with the current capture request.

Link copied to clipboard

Sets a setting to the current capture request and apply it.

Link copied to clipboard
fun <T> setSetting(key: CaptureRequest.Key<T>, value: T)

Sets a setting to the current capture request.