SessionParametersCompat.Builder


class SessionParametersCompat.Builder


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

Summary

Public functions

SessionParametersCompat

Builds the SessionParametersCompat object with the values set by set

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

Set a capture request field to a value.

Public functions

build

Added in 1.5.0-alpha06
fun build(): SessionParametersCompat

Builds the SessionParametersCompat object with the values set by set

set

Added in 1.5.0-alpha06
fun <T> set(key: CaptureRequest.Key<T!>, val: T): SessionParametersCompat.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
SessionParametersCompat.Builder

the current builder