CameraControlCamera2Interop


@CameraXDsl
interface CameraControlCamera2Interop : CameraCaptureSessionInterop


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

Provides setters for dynamic capture request key-value pairs, clearing request keys, template types, and repeating capture callbacks on active camera sessions.

Warning: Callbacks configured on this target (such as android.hardware.camera2.CameraCaptureSession.CaptureCallback) receive raw android.hardware.camera2.CameraCaptureSession instances. Directly invoking state-altering methods on these raw objects (such as android.hardware.camera2.CameraCaptureSession.close or android.hardware.camera2.CameraCaptureSession.abortCaptures) bypasses CameraX pipeline management and may cause state desynchronization, stream interruption, or application crashes.

Summary

Inherited functions

From androidx.camera.camera2.interop.CameraCaptureSessionInterop
CameraControlCamera2Interop

Clears all CaptureRequest.Keys previously set on this target.

CameraControlCamera2Interop

Clears a CaptureRequest.Key previously set on this target.

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

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

open CameraControlCamera2Interop

Sets the callback to receive repeating capture updates on a direct executor.

CameraControlCamera2Interop

Sets the callback to receive repeating capture updates.

CameraControlCamera2Interop

Sets the repeating capture request template type.

Inherited properties

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

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

open CameraCaptureSession.CaptureCallback

Sets the callback to receive repeating capture updates on a direct executor.

open Int

Sets the repeating capture request template type.