Package 

Class ItemsKt

    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.