Package com. snap. camerakit. lenses
Types
LensesComponent
Link copied to clipboard
Functions
whenActivated
Link copied to clipboard
fun LensesComponent.Carousel.Event.whenActivated(callback: Consumer<LensesComponent.Carousel.Event.Activated>)
Content copied to clipboard
Notifies when event emitted by LensesComponent.Carousel is LensesComponent.Carousel.Event.Activated.
whenActivatedIdle
Link copied to clipboard
fun LensesComponent.Carousel.Event.whenActivatedIdle(callback: Consumer<LensesComponent.Carousel.Event.Activated.Idle>)
Content copied to clipboard
Notifies when event emitted by LensesComponent.Carousel is LensesComponent.Carousel.Event.Activated.Idle.
whenActivatedWithLens
Link copied to clipboard
fun LensesComponent.Carousel.Event.whenActivatedWithLens(callback: Consumer<LensesComponent.Carousel.Event.Activated.WithLens>)
Content copied to clipboard
Notifies when event emitted by LensesComponent.Carousel is LensesComponent.Carousel.Event.Activated.WithLens.
whenApplied
Link copied to clipboard
fun LensesComponent.Processor.Event.whenApplied(callback: Consumer<LensesComponent.Processor.Event.Applied>)
Content copied to clipboard
Notifies when event emitted by LensesComponent.Processor is LensesComponent.Processor.Event.Applied.
whenDeactivated
Link copied to clipboard
fun LensesComponent.Carousel.Event.whenDeactivated(callback: Consumer<LensesComponent.Carousel.Event.Deactivated>)
Content copied to clipboard
Notifies when event emitted by LensesComponent.Carousel is LensesComponent.Carousel.Event.Deactivated.
whenFirstFrameProcessed
Link copied to clipboard
fun LensesComponent.Processor.Event.whenFirstFrameProcessed(callback: Consumer<LensesComponent.Processor.Event.FirstFrameProcessed>)
Content copied to clipboard
Notifies when event emitted by LensesComponent.Processor is LensesComponent.Processor.Event.FirstFrameProcessed.
whenHasFirst
Link copied to clipboard
fun LensesComponent.Repository.Result.whenHasFirst(callback: Consumer<LensesComponent.Lens>)
Content copied to clipboard
Notifies when LensesComponent.Repository has some available lenses calling back with the first one.
whenHasSome
Link copied to clipboard
fun LensesComponent.Repository.Result.whenHasSome(callback: Consumer<List<LensesComponent.Lens>>)
Content copied to clipboard
Notifies when LensesComponent.Repository has some available lenses.
whenIdle
Link copied to clipboard
fun LensesComponent.Processor.Event.whenIdle(callback: Consumer<LensesComponent.Processor.Event.Idle>)
Content copied to clipboard
Properties
LENS_GROUP_ID_BUNDLED
Link copied to clipboard