Lenses Component
Provides access to all available features of lenses. Normally, an instance of a component is acquired through com.snap.camerakit.Session which manages the lifecycle of the component.
Types
Cache
Link copied to clipboard
interface Cache
Content copied to clipboard
Provides ability to interact with lenses content cache used by LensesComponent.
Carousel
Link copied to clipboard
interface Carousel
Content copied to clipboard
Provides ability to interact with lenses carousel feature which can be enabled with Configuration supplied to LensesComponent.Builder.configureCarousel method.
Hints
Link copied to clipboard
interface Hints
Content copied to clipboard
Provides ability to interact with lens hints feature which can be enabled with Configuration supplied to LensesComponent.Builder.configureHints method.
Lens
Link copied to clipboard
interface Lens
Content copied to clipboard
Defines the data model of a lens that is available to be used by LensesComponent exposed features.
LoadingOverlay
Link copied to clipboard
interface LoadingOverlay
Content copied to clipboard
Provides ability to interact with lens loading overlay feature which can be enabled with Configuration supplied to LensesComponent.Builder.configureLoadingOverlay method.
MediaPicker
Link copied to clipboard
interface MediaPicker
Content copied to clipboard
Provides ability to interact with lens media picker feature which can be enabled with Configuration supplied to LensesComponent.Builder.configureMediaPicker method.
Noop
Link copied to clipboard
Preferences
Link copied to clipboard
interface Preferences
Content copied to clipboard
Prefetcher
Link copied to clipboard
interface Prefetcher
Content copied to clipboard
Provides ability to prefetch content of lenses before they are applied using a Processor.
Processor
Link copied to clipboard
interface Processor : ImageProcessor, AudioProcessor, UserProcessor, LocationProcessor, SafeRenderAreaProcessor, MediaProcessor
Content copied to clipboard
Extension of ImageProcessor that allows to apply and remove lenses on top of the incoming image and audio input stream rendered to connected outputs.
RemoteApiService
Link copied to clipboard
Repository
Link copied to clipboard
interface Repository
Content copied to clipboard
Functions
close
Link copied to clipboard
abstract override fun close()
Content copied to clipboard
Closes all resources allocated for this LensesComponent.
Properties
audio
Link copied to clipboard
preferences
Link copied to clipboard
Provides a Preferences of lenses available to interact with during this component lifecycle.
prefetcher
Link copied to clipboard
Provides a Prefetcher of lenses available to interact with during this component lifecycle.
repository
Link copied to clipboard
Provides a Repository of lenses available to interact with during this component lifecycle.
Inheritors
LensesComponent
Link copied to clipboard