Builder

interface Builder

Functions

Link copied to clipboard

Uses the provided viewStub to inflate view hierarchy of the lens widgets (like media picker) which otherwise appear above the lenses carousel.

Link copied to clipboard

Builds an instance of LensesComponent with the configuration of this builder and starts the internal lifecycle which can be disposed by calling LensesComponent.close.

Link copied to clipboard

Allows to configure lenses cache by receiving Cache.Configuration in the provided Consumer.

Link copied to clipboard

Allows to enable and configure lenses carousel feature by receiving Carousel.Configuration in the provided Consumer.

Link copied to clipboard

Allows to enable and configure lens hints feature by receiving Hints.Configuration in the provided Consumer.

Link copied to clipboard

Allows to enable and configure lens loading overlay feature by receiving LoadingOverlay.Configuration in the provided Consumer.

Link copied to clipboard

Allows to enable and configure lens media picker feature by receiving MediaPicker.Configuration in the provided Consumer.

Link copied to clipboard

Allows to configure lenses processor by receiving Processor.Configuration in the provided Consumer.

Link copied to clipboard

Allows to receive touch events that were not handled by LensesComponent, if any views are configured to be shown, see com.snap.camerakit.Session.Builder.imageProcessorSource.

Link copied to clipboard

Allows to provide a RemoteApiService.Factory called per each lifecycle of a lens which sends requests to a remote API service.