Package 

Class LoadMoreHandlerKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit LoadMoreHandler(LazyListState listState, Integer loadMoreThreshold, Function0<Unit> loadMore) Handler to notify more items should be loaded when the user scrolls to the end of the list.
      final static Unit LoadMoreHandler(LazyListState lazyListState, Function0<Integer> threshold, Function0<Unit> loadMore) Handler to notify that more items should be loaded when the user scrolls to the end of the list.
      final static Unit LoadMoreHandler(LazyGridState lazyGridState, Function0<Integer> threshold, Function0<Unit> loadMore) Handler to notify that more items should be loaded when the user scrolls to the end of the grid.
      final static Unit LoadMoreHandler(PagerState pagerState, Function0<Integer> pageCount, Function0<Integer> threshold, Function0<Unit> loadMore) Handler to notify that more items should be loaded when the user scrolls to the end of the pager.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • LoadMoreHandler

        @Deprecated(message = This function is deprecated. Use the one with a lambda for loadMoreThreshold instead., replaceWith = @ReplaceWith(imports = {io.getstream.chat.android.compose.handlers.LoadMoreHandler}, expression = LoadMoreHandler(listState, { loadMoreThreshold }, loadMore)))@Composable() final static Unit LoadMoreHandler(LazyListState listState, Integer loadMoreThreshold, Function0<Unit> loadMore)

        Handler to notify more items should be loaded when the user scrolls to the end of the list.

        Parameters:
        listState - The state of the list used to control scrolling.
        loadMoreThreshold - The number if items before the end of the list.
        loadMore - Handler for load more action.
      • LoadMoreHandler

        @Composable() final static Unit LoadMoreHandler(LazyListState lazyListState, Function0<Integer> threshold, Function0<Unit> loadMore)

        Handler to notify that more items should be loaded when the user scrolls to the end of the list.

        Parameters:
        lazyListState - The LazyListState used to control scrolling.
        threshold - The number if items to check before reaching the end of the list.
        loadMore - The callback to load more items.
      • LoadMoreHandler

        @Composable() final static Unit LoadMoreHandler(LazyGridState lazyGridState, Function0<Integer> threshold, Function0<Unit> loadMore)

        Handler to notify that more items should be loaded when the user scrolls to the end of the grid.

        Parameters:
        lazyGridState - The LazyGridState used to control scrolling.
        threshold - The number if items to check before reaching the end of the grid.
        loadMore - The callback to load more items.
      • LoadMoreHandler

        @Composable() final static Unit LoadMoreHandler(PagerState pagerState, Function0<Integer> pageCount, Function0<Integer> threshold, Function0<Unit> loadMore)

        Handler to notify that more items should be loaded when the user scrolls to the end of the pager.

        Parameters:
        pagerState - The PagerState used to control scrolling.
        pageCount - The total number of pages.
        threshold - The number if items to check before reaching the end of the pager.
        loadMore - The callback to load more items.