LazyLoadEffect
Deprecated
This implementation is deprecated. Please use the new LazyLoad from soil-experimental:soil-lazyload module instead.
Replace with
import soil.plant.compose.lazy.LazyLoad
LazyLoad(state, loadMore, loadMoreParam)
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 of a androidx.compose.foundation.lazy.LazyColumn or androidx.compose.foundation.lazy.LazyRow.
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.
Deprecated
This implementation is deprecated. Please use the new LazyLoad from soil-experimental:soil-lazyload module instead.
Replace with
import soil.plant.compose.lazy.LazyLoad
LazyLoad(state, loadMore, loadMoreParam)
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 of a androidx.compose.foundation.lazy.grid.LazyGrid.
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.