LoadMoreHandler

fun LoadMoreHandler(lazyListState: LazyListState, threshold: () -> Int = { DefaultLoadMoreThreshold }, loadMore: () -> Unit)

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. Default is 3.

loadMore

The callback to load more items.


fun LoadMoreHandler(lazyGridState: LazyGridState, threshold: () -> Int = { DefaultLoadMoreThreshold }, loadMore: () -> Unit)

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. Default is 3.

loadMore

The callback to load more items.


fun LoadMoreHandler(pagerState: PagerState, pageCount: () -> Int, threshold: () -> Int = { DefaultLoadMoreThreshold }, loadMore: () -> Unit)

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. Default is 3.

loadMore

The callback to load more items.