public interface CarouselParallaxScrollEffectState
A state holder for scrollable items to track effect values that are applied by the carouselParallaxScrollEffect modifier.
Use one of the CarouselParallaxScrollEffectState functions to create an instance of this interface using LazyListState or LazyGridState, or implement the interface directly for a custom layout.
Properties
orientation
public val orientation: Orientation
The scroll orientation of the container.
Functions
calculateItemInfo
public fun calculateItemInfo(index: Int): CarouselParallaxScrollEffectItemInfo
Returns visual effect values (CarouselParallaxScrollEffectItemInfo) for the item at index.
Note that this function should not be called during composition. Make sure to call getItemInfo from a graphics, layout, or other Modifier.Node where changes to the underlying info will not cause unwanted recompositions.