CaptureRequestOptions.Builder


class CaptureRequestOptions.Builder : ExtendableBuilder


Builder for creating CaptureRequestOptions instance.

Summary

Public constructors

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

Public functions

open CaptureRequestOptions

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

CaptureRequestOptions.Builder
<ValueT : Any?> clearCaptureRequestOption(key: CaptureRequest.Key<ValueT>)

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

CaptureRequestOptions.Builder
<ValueT : Any?> setCaptureRequestOption(
    key: CaptureRequest.Key<ValueT>,
    value: ValueT
)

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

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.7.0-alpha03
Builder()

Public functions

build

Added in 1.0.0
Deprecated in 1.7.0-alpha03
open fun build(): CaptureRequestOptions

Builds an immutable CaptureRequestOptions from the current state.

Returns
CaptureRequestOptions

A CaptureRequestOptions populated with the current state.

clearCaptureRequestOption

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

Removes a capture request option with specific CaptureRequest.Key setting.

setCaptureRequestOption

Added in 1.0.0
Deprecated in 1.7.0-alpha03
fun <ValueT : Any?> setCaptureRequestOption(
    key: CaptureRequest.Key<ValueT>,
    value: ValueT
): CaptureRequestOptions.Builder

Inserts new capture request option with specific CaptureRequest.Key setting.