LazyLoadCustomEffect
Provides a LaunchedEffect to perform additional loading for soil.query.compose.InfiniteQueryObject.
The percentage is calculated from the values of computeVisibleItemIndex and totalItemsCount. It only triggers when the threshold is reached.
Parameters
The scroll state inherited from ScrollableState.
Specifies the function to call for loading more items, typically soil.query.compose.InfiniteQueryObject.loadMore.
The parameter passed to soil.query.compose.InfiniteQueryObject.loadMore. If null
, the effect is not triggered.
The total number of items related to state.
The threshold scroll position at which to trigger additional loading.
The direction for loading more items.
A function that calculates the index of the visible item used as the reference for additional loading.