-
public final class ItemsKt
-
-
Method Summary
-
-
Method Detail
-
items
final static <T extends Any> Unit items(ScalingLazyListScope $self, LazyPagingItems<T> items, Function1<T, Object> key, Function2<ScalingLazyListItemScope, T, Unit> itemContent)
Adds the LazyPagingItems and their content to the scope. The range from 0 (inclusive) to LazyPagingItems.itemCount (exclusive) always represents the full range of presentable items, because every event from PagingDataDiffer will trigger a recomposition.
Code from https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:paging/paging-compose/src/main/java/androidx/paging/compose/LazyPagingItems.kt
- Parameters:
items- the items received from a Flow of PagingData.key- a factory of stable and unique keys representing the item.itemContent- the content displayed by a single item.
-
-
-
-