CarouselItemInfo

sealed interface CarouselItemInfo

Interface to hold information about a Carousel item and its size.

Example of CarouselItemInfo usage:

Samples

androidx.compose.material3.samples.FadingHorizontalMultiBrowseCarouselSample

Properties

Link copied to clipboard
abstract val maskRect: Rect

The rect by which the carousel item is being clipped.

Link copied to clipboard
abstract val maxSize: Float

The maximum size in the main axis of the carousel item, eg. the size of the item when it is at a focal position

Link copied to clipboard
abstract val minSize: Float

The minimum size in the main axis of the carousel item, eg. the size of the item when it scrolls off the sides of the carousel

Link copied to clipboard
abstract val size: Float

The size of the carousel item in the main axis