CaptureRequestOptions


@ExperimentalCamera2Interop
open class CaptureRequestOptions


A bundle of Camera2 capture request options. config potentially contains Camera2 capture request options.

Use Camera2Interop.forUseCase, Camera2Interop.forImageCapture, Camera2Interop.forSessionConfig, or Camera2Interop.forCameraControl in Java, or the camera2Interop / applyCamera2Interop extension functions in Kotlin instead.

Summary

Nested types

This class is deprecated. Use the camera2Interop or applyCamera2Interop extension functions instead, e.g., 'builder.camera2Interop { setCaptureRequestOption(key, value) }'.

Public functions

open ValueT?
<ValueT : Any?> getCaptureRequestOption(key: CaptureRequest.Key<ValueT>)

This function is deprecated. Use the camera2Interop or applyCamera2Interop extension functions instead, e.g., 'builder.camera2Interop { setCaptureRequestOption(key, value) }'.

Public functions

getCaptureRequestOption

Added in 1.0.0
Deprecated in 1.7.0-alpha03
open fun <ValueT : Any?> getCaptureRequestOption(key: CaptureRequest.Key<ValueT>): ValueT?

Returns a value for the given CaptureRequest.Key or null if it hasn't been set.

Parameters
<ValueT : Any?>

The type of the value.

key: CaptureRequest.Key<ValueT>

The key to retrieve.

Returns
ValueT?

The stored value or null if the value does not exist in this configuration.