Carousel

interface Carousel

Provides ability to interact with lenses carousel feature which can be enabled with Configuration supplied to LensesComponent.Builder.configureCarousel method.

Types

Link copied to clipboard
interface Configuration

Exposes configuration options available to lenses carousel feature.

Link copied to clipboard
sealed class Event

All lenses carousel lifecycle events available to observe.

Link copied to clipboard
interface ItemOptions

Represents options to customize lenses carousel item appearance.

Link copied to clipboard
sealed class LayoutPlacement

Describes directional placement relative to the lens carousel.

Link copied to clipboard
Link copied to clipboard

Describes position on the left or right to the center of lenses carousel.

Link copied to clipboard

Defines a contract of a view that is called to show and hide lenses carousel.

Functions

Link copied to clipboard
abstract fun activate(lens: LensesComponent.Lens? = null, callback: Consumer<Boolean> = Consumer {})

Attempts to activate lenses carousel with an optional Lens pre-selected. The operation is async with the result provided as success or failure flag to the callback.

Link copied to clipboard
abstract fun deactivate(callback: Consumer<Boolean> = Consumer {})

Attempts to deactivate lenses carousel. The operation is async with the result provided as success or failure flag to the callback.

Link copied to clipboard

Allows to observe lenses carousel lifecycle events defined in Event.

Inheritors

Link copied to clipboard