SessionConfigCamera2Interop


@CameraXDsl
abstract class SessionConfigCamera2Interop : CameraDeviceInterop, SessionConfigurationInterop, CameraCaptureSessionInterop


Configures Camera2 options on a androidx.camera.core.SessionConfig.

Provides setters for session parameters, operating mode session type, session color space, device and session state callbacks, capture request keys, and repeating capture callbacks.

Warning: Callbacks configured on this target receive raw android.hardware.camera2.CameraDevice and android.hardware.camera2.CameraCaptureSession instances. Directly invoking state-altering, lifecycle, or request-submitting methods on these raw objects bypasses CameraX pipeline management and causes state desynchronization, stream freezing, or crashes. Do not invoke:

Summary

Inherited functions

From androidx.camera.camera2.interop.CameraCaptureSessionInterop
abstract Unit

Clears all CaptureRequest.Keys previously set on this target.

abstract Unit

Clears a CaptureRequest.Key previously set on this target.

abstract Unit
<V : Any?> setCaptureRequestOption(key: CaptureRequest.Key<V>, value: V)

Sets a CaptureRequest.Key and value on repeating and one-shot requests.

abstract Unit

Sets the callback to receive repeating capture updates with an executor.

From androidx.camera.camera2.interop.CameraDeviceInterop
abstract Unit
setDeviceStateCallback(
    executor: Executor,
    callback: CameraDevice.StateCallback
)

Sets the callback to receive camera device state updates with an executor.

From androidx.camera.camera2.interop.SessionConfigurationInterop
abstract Unit
@RequiresApi(value = 28)
<V : Any?> setSessionParameter(key: CaptureRequest.Key<V>, value: V)

Sets a session parameter used during session creation.

abstract Unit

Sets the callback to receive session state updates with an executor.

Inherited properties

From androidx.camera.camera2.interop.CameraCaptureSessionInterop
open CaptureRequestOptionTarget

Helper target property supporting captureRequest[key] = value indexing operator syntax.

abstract CameraCaptureSession.CaptureCallback?

The callback to receive repeating capture updates on a direct executor.

abstract Int

The repeating capture request template type (e.g., android.hardware.camera2.CameraDevice.TEMPLATE_PREVIEW).

From androidx.camera.camera2.interop.CameraDeviceInterop
abstract CameraDevice.StateCallback?

The callback to receive camera device state updates on a direct executor.

From androidx.camera.camera2.interop.SessionConfigurationInterop
abstract ColorSpace.Named?

The session color space.

open SessionParameterTarget

Helper target property supporting sessionParameter[key] = value indexing operator syntax.

abstract CameraCaptureSession.StateCallback?

The callback to receive session state updates on a direct executor.

abstract Int

The operating mode session type.