Package-level declarations

Types

Link copied to clipboard
class LazyGridThreshold(val remainingItems: Int = 6, val remainingRatio: Float = 0.2f)

Configuration class for determining when to load more items in a LazyVerticalGrid or LazyHorizontalGrid.

Link copied to clipboard
class LazyListThreshold(val remainingItems: Int = 6, val remainingRatio: Float = 0.2f)

Configuration class for determining when to load more items in a LazyColumn or LazyRow.

Link copied to clipboard
fun interface LazyLoadMore<T>

Interface that defines the callback for loading more items.

Link copied to clipboard
fun interface LazyLoadStrategy<T>

Interface that defines the strategy for determining when to load more items.

Functions

Link copied to clipboard
inline fun <T : Any, S> LazyLoad(state: S, loadMore: LazyLoadMore<T>, loadMoreParam: T?, strategy: LazyLoadStrategy<S>, debounceTimeout: Duration = 200.milliseconds)

Core composable that implements infinite scrolling logic for any scrollable state.

inline fun <T : Any> LazyLoad(state: LazyListState, loadMore: LazyLoadMore<T>, loadMoreParam: T?, threshold: LazyListThreshold = LazyListThreshold(), debounceTimeout: Duration = 200.milliseconds)

A composable function that enables infinite scrolling for a LazyColumn or LazyRow.

inline fun <T : Any> LazyLoad(state: LazyGridState, loadMore: LazyLoadMore<T>, loadMoreParam: T?, threshold: LazyGridThreshold = LazyGridThreshold(), debounceTimeout: Duration = 200.milliseconds)

A composable function that enables infinite scrolling for a LazyVerticalGrid or LazyHorizontalGrid.