androidx.compose.material3.carousel

MultiAspectCarouselItemDrawInfoSince 1.11Experimental

Sealed interface

No hand-written docs yet.

Interface to hold information about a multi-aspect carousel item and its draw info that change as the item scrolls.

sealed interface MultiAspectCarouselItemDrawInfo

How to get one

Create it

Used by

Parameters that take a MultiAspectCarouselItemDrawInfo.

Properties

index

val index: Int

The index of this item in the list.

size

val size: Float

The current size of this item in the main scrolling axis taking into account any masking from maskStart and maskEnd.

minSize

val minSize: Float

The smallest size this item will ever be masked to in the main scrolling axis. size will never be less than minSize.

maxSize

val maxSize: Float

The maximum size this item will be in the main scrolling axis. This is the fully unmasked size of the item with no mask applied. size will never be greater than maxSize.

maskStart

val maskStart: Float

The offset in pixels from the start of this item's bounds by which the item should be masked.

maskEnd

val maskEnd: Float

The offset in pixels from the end of this item's bounds by which the item should be masked.

parallax

val parallax: Float

The distance in pixels to translate this item's content in the main scrolling axis.

isHorizontal

val isHorizontal: Boolean

True if the main scrolling axis is horizontal.

Library docs

Interface to hold information about a multi-aspect carousel item and its draw info that change as the item scrolls.

Example of MultiAspectCarouselItemDrawInfo usage: