public final class

SessionConfig.ValidatingBuilder

extends androidx.camera.core.impl.SessionConfig.BaseBuilder

 java.lang.Object

↳androidx.camera.core.impl.SessionConfig.BaseBuilder

↳androidx.camera.core.impl.SessionConfig.ValidatingBuilder

Overview

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

Summary

Constructors
publicValidatingBuilder()

Methods
public voidadd(SessionConfig sessionConfig)

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

public voidaddImplementationOption(Config.Option<java.lang.Object> option, java.lang.Object value)

Add an implementation option to the ValidatingBuilder's CaptureConfigBuilder.

public SessionConfigbuild()

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

public voidclearSurfaces()

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

public booleanisValid()

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public ValidatingBuilder()

Methods

public void addImplementationOption(Config.Option<java.lang.Object> option, java.lang.Object value)

Add an implementation option to the ValidatingBuilder's CaptureConfigBuilder. If it already has an option with the same key, write it over.

public void add(SessionConfig sessionConfig)

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

public void clearSurfaces()

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

public boolean isValid()

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

public SessionConfig build()

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