TvLazyGridItemScope

@TvLazyGridScopeMarker
sealed interface TvLazyGridItemScope


Receiver scope being used by the item content parameter of TvLazyVerticalGrid.

Summary

Public functions

Modifier

This function is deprecated. Use `LazyGridItemScope.animateItemPlacement` instead.

Public functions

animateItemPlacement

@ExperimentalFoundationApi
fun Modifier.animateItemPlacement(
    animationSpec: FiniteAnimationSpec<IntOffset> = spring( stiffness = Spring.StiffnessMediumLow, visibilityThreshold = IntOffset.VisibilityThreshold )
): Modifier

This modifier animates the item placement within the Lazy grid.

When you provide a key via TvLazyGridScope.item/TvLazyGridScope.items this modifier will enable item reordering animations. Aside from item reordering all other position changes caused by events like arrangement or alignment changes will also be animated.

Parameters
animationSpec: FiniteAnimationSpec<IntOffset> = spring( stiffness = Spring.StiffnessMediumLow, visibilityThreshold = IntOffset.VisibilityThreshold )

a finite animation that will be used to animate the item placement.