ValidatingBuilder

class ValidatingBuilder : BaseBuilder
androidx.camera.core.impl.SessionConfig.ValidatingBuilder

Builder for combining multiple instances of SessionConfig. This will check if all the parameters for the SessionConfig are compatible with each other

Summary

Public constructors

Builder for combining multiple instances of SessionConfig.

Public methods
Unit
add(@NonNull sessionConfig: SessionConfig)

Add the SessionConfig to the set of SessionConfig that have been aggregated by the ValidatingBuilder

SessionConfig

Builds an instance of a SessionConfig that has all the combined parameters of the SessionConfig that have been added to the ValidatingBuilder.

Unit

Clears all surfaces from the set which the session writes to.

Boolean

Check if the set of SessionConfig that have been combined are valid

Public constructors

ValidatingBuilder

ValidatingBuilder()

Builder for combining multiple instances of SessionConfig. This will check if all the parameters for the SessionConfig are compatible with each other

Public methods

add

fun add(@NonNull sessionConfig: SessionConfig): Unit

Add the SessionConfig to the set of SessionConfig that have been aggregated by the ValidatingBuilder

build

@NonNull fun build(): SessionConfig

Builds an instance of a SessionConfig that has all the combined parameters of the SessionConfig that have been added to the ValidatingBuilder.

clearSurfaces

fun clearSurfaces(): Unit

Clears all surfaces from the set which the session writes to.

isValid

fun isValid(): Boolean

Check if the set of SessionConfig that have been combined are valid