androidx.compose.material3.carousel
CarouselItemDrawInfoSince 1.9
Sealed interface
No hand-written docs yet.
Interface to hold information about a Carousel item and its size.
sealed interface CarouselItemDrawInfo
How to get one
Ready-made values and functions that return it
Properties
size
val size: Float
The size of the carousel item in the main axis in pixels
minSize
val minSize: Float
The minimum size of the carousel item in the main axis in pixels, eg. the size of the item as it scrolls off the sides of the carousel
maxSize
val maxSize: Float
The maximum size of the carousel item in the main axis in pixels, eg. the size of the item when it is at a focal position
maskRect
val maskRect: Rect
The Rect by which the carousel item is being clipped.
Library docs
Interface to hold information about a Carousel item and its size.
Example of CarouselItemDrawInfo usage: