-
public final class LoadMoreHandlerKt
-
-
Method Summary
Modifier and Type Method Description final static UnitLoadMoreHandler(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 UnitLoadMoreHandler(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 UnitLoadMoreHandler(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. -
-
Method Detail
-
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.
-
-
-
-