public final class SessionParametersLegacy.Builder


Simple builder class to build a SessionParametersLegacy object.

Summary

Public constructors

Public methods

@NonNull SessionParametersLegacy

Builds the SessionParametersLegacy object with the values set by set

@NonNull SessionParametersLegacy.Builder
<T> set(@NonNull CaptureRequest.Key<T> key, @NonNull T val)

Set a capture request field to a value.

Public constructors

Builder

Added in 1.5.0-beta01
public Builder()

Public methods

build

Added in 1.5.0-beta01
public @NonNull SessionParametersLegacy build()

Builds the SessionParametersLegacy object with the values set by set

set

Added in 1.5.0-beta01
public @NonNull SessionParametersLegacy.Builder <T> set(@NonNull CaptureRequest.Key<T> key, @NonNull T val)

Set a capture request field to a value. Updates the value if the key was already added before.

Parameters
@NonNull CaptureRequest.Key<T> key

the CaptureRequest.Key set.

@NonNull T val

the value to associate with key

Returns
@NonNull SessionParametersLegacy.Builder

the current builder