class SessionParametersLegacy.Builder


Simple builder class to build a SessionParametersLegacy object.

Summary

Public constructors

Public functions

SessionParametersLegacy

Builds the SessionParametersLegacy object with the values set by set

SessionParametersLegacy.Builder
<T> set(key: CaptureRequest.Key<T!>, val: T)

Set a capture request field to a value.

Public constructors

Builder

Added in 1.5.0-beta01
Builder()

Public functions

build

Added in 1.5.0-beta01
fun build(): SessionParametersLegacy

Builds the SessionParametersLegacy object with the values set by set

set

Added in 1.5.0-beta01
fun <T> set(key: CaptureRequest.Key<T!>, val: T): SessionParametersLegacy.Builder

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

Parameters
key: CaptureRequest.Key<T!>

the CaptureRequest.Key set.

val: T

the value to associate with key

Returns
SessionParametersLegacy.Builder

the current builder