CaptureRequestOptions


@ExperimentalCamera2Interop
public 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

public final class CaptureRequestOptions.Builder implements ExtendableBuilder

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

Public methods

ValueT
<ValueT extends Object> getCaptureRequestOption(
    @NonNull CaptureRequest.Key<@NonNull ValueT> key
)

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

Public methods

getCaptureRequestOption

Added in 1.0.0
Deprecated in 1.7.0-alpha03
public ValueT <ValueT extends Object> getCaptureRequestOption(
    @NonNull CaptureRequest.Key<@NonNull ValueT> key
)

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

Parameters
<ValueT extends Object>

The type of the value.

@NonNull CaptureRequest.Key<@NonNull ValueT> key

The key to retrieve.

Returns
ValueT

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