androidx.compose.material3.carousel

MultiAspectCarouselScopeSince 1.11

Interface

No hand-written docs yet.

A scope containing all methods used to create a multi-aspect carousel from a androidx.compose.foundation.lazy.LazyRow or androidx.compose.foundation.lazy.LazyColumn.

interface MultiAspectCarouselScope

How to get one

Create it

Used by

Parameters that take a MultiAspectCarouselScope.

Functions

maskClipExperimental

fun Modifier.maskClip(
    shape: Shape,
    multiAspectItemDrawInfo: MultiAspectCarouselItemDrawInfo,
): Modifier

Clip and parallax a composable item in a LazyLayout to the given shape according to mask and parallax values from multiAspectItemDrawInfo.

maskBorderExperimental

@Composable
fun Modifier.maskBorder(
    border: BorderStroke,
    shape: Shape,
    multiAspectItemDrawInfo: MultiAspectCarouselItemDrawInfo,
): Modifier

Draw a border on a composable item in a LazyLayout using the given shape according to the mask values from multiAspectItemDrawInfo.

Library docs

A scope containing all methods used to create a multi-aspect carousel from a androidx.compose.foundation.lazy.LazyRow or androidx.compose.foundation.lazy.LazyColumn.

For each item in a lazy list, remember a MultiAspectCarouselItemDrawInfo using and then modify items with maskClip to create a parallax masking effect as items enter and exit the scrolling container.