LensesComponent

interface LensesComponent : Closeable

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

Audio
Link copied to clipboard
interface Audio
Provides control over the lenses audio.
Builder
Link copied to clipboard
interface Builder
Cache
Link copied to clipboard
interface Cache
Provides ability to interact with lenses content cache used by LensesComponent.
Carousel
Link copied to clipboard
interface Carousel
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
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
Defines the data model of a lens that is available to be used by LensesComponent exposed features.
LoadingOverlay
Link copied to clipboard
interface LoadingOverlay
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
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
object Noop : LensesComponent
Implementation of LensesComponent which does nothing.
Preferences
Link copied to clipboard
interface Preferences
Provides ability to interact with storage used by lenses to store user specific data such as game or on-boarding state, options etc.
Prefetcher
Link copied to clipboard
interface Prefetcher
Provides ability to prefetch content of lenses before they are applied using a Processor.
Processor
Link 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
interface RemoteApiService : Closeable
Provides ability to handle remote API requests that originate within lenses.
Repository
Link copied to clipboard
interface Repository
Provides ability to query lenses that are available to interact with by specific criteria.

Functions

close
Link copied to clipboard
abstract override fun close()
Closes all resources allocated for this LensesComponent.

Properties

audio
Link copied to clipboard
open val audio: LensesComponent.Audio
Provides control over the lenses audio.
carousel
Link copied to clipboard
open val carousel: LensesComponent.Carousel
Provides a Carousel of lenses available to interact with during this component lifecycle.
preferences
Link copied to clipboard
open val preferences: LensesComponent.Preferences
Provides a Preferences of lenses available to interact with during this component lifecycle.
prefetcher
Link copied to clipboard
open val prefetcher: LensesComponent.Prefetcher
Provides a Prefetcher of lenses available to interact with during this component lifecycle.
processor
Link copied to clipboard
open val processor: LensesComponent.Processor
Provides lenses specific Processor which allows to process image and audio input with applied lenses while rendering results to connected outputs.
repository
Link copied to clipboard
open val repository: LensesComponent.Repository
Provides a Repository of lenses available to interact with during this component lifecycle.

Inheritors

LensesComponent
Link copied to clipboard