CarouselItem

Provides context about a Carousel's current state to ItemVisualizers.

Properties

Link copied to clipboard
abstract val nearestItem: Int

item currently closest to the "selected" position

Link copied to clipboard
abstract val numItems: Int

within the Carousel

Link copied to clipboard

the carousel's previously selected index

Link copied to clipboard

how close the Carousel is to transitioning from nearestItem to currentIndex + 1

Link copied to clipboard

how close the carousel is to targetItem

Link copied to clipboard
abstract val targetItem: Int

item the carousel is moving towards

Inherited properties

Link copied to clipboard
abstract val index: Int

of the item

Link copied to clipboard
abstract val selected: Boolean

is true for selected items