CaptureRequestOptions

public class CaptureRequestOptions
extends Object

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


A bundle of Camera2 capture request options.

Summary

Nested classes

class CaptureRequestOptions.Builder

Builder for creating CaptureRequestOptions instance. 

Public constructors

CaptureRequestOptions(Config config)

Creates a CaptureRequestOptions for reading Camera2 capture request options from the given config.

Public methods

<ValueT> ValueT getCaptureRequestOption(Key<ValueT> key)

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

Inherited methods

Public constructors

CaptureRequestOptions

public CaptureRequestOptions (Config config)

Creates a CaptureRequestOptions for reading Camera2 capture request options from the given config.

Parameters
config Config: The config that potentially contains Camera2 capture request options.

Public methods

getCaptureRequestOption

public ValueT getCaptureRequestOption (Key<ValueT> key)

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

Parameters
key Key: The key to retrieve.

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