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

CaptureRequestOptions.Builder

public static final class CaptureRequestOptions.Builder
extends Object implements ExtendableBuilder<CaptureRequestOptions>

java.lang.Object
   ↳ androidx.camera.camera2.interop.CaptureRequestOptions.Builder


Builder for creating CaptureRequestOptions instance.

Summary

Public constructors

Builder()

Public methods

CaptureRequestOptions build()

Builds an immutable CaptureRequestOptions from the current state.

<ValueT> CaptureRequestOptions.Builder clearCaptureRequestOption(Key<ValueT> key)

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

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

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

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public CaptureRequestOptions build ()

Builds an immutable CaptureRequestOptions from the current state.

Returns
CaptureRequestOptions A CaptureRequestOptions populated with the current state.

clearCaptureRequestOption

public CaptureRequestOptions.Builder clearCaptureRequestOption (Key<ValueT> key)

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

Parameters
key Key

Returns
CaptureRequestOptions.Builder

setCaptureRequestOption

public CaptureRequestOptions.Builder setCaptureRequestOption (Key<ValueT> key, 
                ValueT value)

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

Parameters
key Key

value ValueT

Returns
CaptureRequestOptions.Builder