SessionParametersCompat.Builder


public final class SessionParametersCompat.Builder


Simple builder class to build a SessionParametersCompat object. A Builder object can be obtained using the builder call.

Summary

Public methods

@NonNull SessionParametersCompat

Builds the SessionParametersCompat object with the values set by set

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

Set a capture request field to a value.

Public methods

build

Added in 1.5.0-alpha06
public @NonNull SessionParametersCompat build()

Builds the SessionParametersCompat object with the values set by set

set

Added in 1.5.0-alpha06
public @NonNull SessionParametersCompat.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 SessionParametersCompat.Builder

the current builder