Android 12 Developer Preview is here! Try it out, and give us your feedback!

Builder

class Builder : ExtendableBuilder<CaptureRequestOptions!>
kotlin.Any
   ↳ androidx.camera.camera2.interop.CaptureRequestOptions.Builder

Builder for creating CaptureRequestOptions instance.

Summary

Public constructors

Builder for creating CaptureRequestOptions instance.

Public methods
CaptureRequestOptions

Builds an immutable CaptureRequestOptions from the current state.

CaptureRequestOptions.Builder
clearCaptureRequestOption(@NonNull key: Key<ValueT>)

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

CaptureRequestOptions.Builder
setCaptureRequestOption(@NonNull key: Key<ValueT>, @NonNull value: ValueT)

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

Public constructors

<init>

Builder()

Builder for creating CaptureRequestOptions instance.

Public methods

build

@NonNull fun build(): CaptureRequestOptions

Builds an immutable CaptureRequestOptions from the current state.

Return
CaptureRequestOptions A CaptureRequestOptions populated with the current state.

clearCaptureRequestOption

@NonNull fun <ValueT : Any!> clearCaptureRequestOption(@NonNull key: Key<ValueT>): CaptureRequestOptions.Builder

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

setCaptureRequestOption

@NonNull fun <ValueT : Any!> setCaptureRequestOption(
    @NonNull key: Key<ValueT>,
    @NonNull value: ValueT
): CaptureRequestOptions.Builder

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