CaptureRequestOptions.Builder


public final class CaptureRequestOptions.Builder implements ExtendableBuilder


Builder for creating CaptureRequestOptions instance.

Summary

Public constructors

Public methods

@NonNull CaptureRequestOptions

Builds an immutable CaptureRequestOptions from the current state.

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

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

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

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

Public constructors

Builder

Added in 1.0.0
public Builder()

Public methods

build

Added in 1.0.0
public @NonNull CaptureRequestOptions build()

Builds an immutable CaptureRequestOptions from the current state.

Returns
@NonNull CaptureRequestOptions

A CaptureRequestOptions populated with the current state.

clearCaptureRequestOption

Added in 1.0.0
public @NonNull CaptureRequestOptions.Builder <ValueT> clearCaptureRequestOption(
    @NonNull CaptureRequest.Key<ValueT> key
)

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

setCaptureRequestOption

Added in 1.0.0
public @NonNull CaptureRequestOptions.Builder <ValueT> setCaptureRequestOption(
    @NonNull CaptureRequest.Key<ValueT> key,
    @NonNull ValueT value
)

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