Package-level declarations

Types

Link copied to clipboard

How an element enters with animateVisibility.

Properties

Link copied to clipboard

The EntranceStyle every animateVisibility here uses unless it names its own. The shell provides the app's choice, appToolkitDefaults { shell { entranceStyle = ... } }, or the one picked in the developer options.

Functions

Link copied to clipboard
fun LazyListScope.animatedItem(key: Any? = null, contentType: Any? = null, content: @Composable LazyItemScope.() -> Unit)

One LazyListScope.item that enters with the screen's cascade, in its place in the list, and moves with animateItem: a header, a picker or a card among a list's items.

fun LazyGridScope.animatedItem(key: Any? = null, span: LazyGridItemSpanScope.() -> GridItemSpan? = null, contentType: Any? = null, content: @Composable LazyGridItemScope.() -> Unit)

One grid item entering as LazyListScope.animatedItem does.

Link copied to clipboard
fun <T> LazyListScope.animatedItems(items: List<T>, key: (item: T) -> Any? = null, contentType: (item: T) -> Any? = { null }, itemContent: @Composable LazyItemScope.(item: T) -> Unit)

items whose every item enters with the screen's cascade, in list order, and moves with animateItem when the list changes: a list's whole entrance in one call.

fun <T> LazyGridScope.animatedItems(items: List<T>, key: (item: T) -> Any? = null, span: LazyGridItemSpanScope.(item: T) -> GridItemSpan? = null, contentType: (item: T) -> Any? = { null }, itemContent: @Composable LazyGridItemScope.(item: T) -> Unit)

items of a grid, entering as LazyListScope.animatedItems does.

Link copied to clipboard
fun <T> LazyListScope.animatedItemsIndexed(items: List<T>, key: (index: Int, item: T) -> Any? = null, contentType: (index: Int, item: T) -> Any? = { _, _ -> null }, itemContent: @Composable LazyItemScope.(index: Int, item: T) -> Unit)

animatedItems with each item's index.

fun <T> LazyGridScope.animatedItemsIndexed(items: List<T>, key: (index: Int, item: T) -> Any? = null, span: LazyGridItemSpanScope.(index: Int, item: T) -> GridItemSpan? = null, contentType: (index: Int, item: T) -> Any? = { _, _ -> null }, itemContent: @Composable LazyGridItemScope.(index: Int, item: T) -> Unit)

animatedItems of a grid with each item's index.

Link copied to clipboard
fun Modifier.animateVisibility(visible: Boolean, style: EntranceStyle = LocalEntranceStyle.current): Modifier

Shows the composable while visible and hides it otherwise, animating both ways with style's motion: an element that comes and goes, such as a filter's result or a hint. It keeps its place in the layout while hidden, only drawn transparent; remove it from the layout with AnimatedVisibility instead.

fun Modifier.animateVisibility(index: Int? = null, style: EntranceStyle = LocalEntranceStyle.current, staggerDelay: Int = 50, maxStaggeredItems: Int = 16): Modifier

Brings a composable into place as its screen is shown, in a cascade.

Link copied to clipboard

A modifier that adds haptic feedback when a drawer is swiped.

Link copied to clipboard
Link copied to clipboard

A Modifier that provides haptic feedback when a SwipeToDismissBox is swiped past a certain threshold.

Link copied to clipboard

A shimmer effect modifier for Jetpack Compose UI elements.