LazyPagingItems

data class LazyPagingItems<T : Any>(state: State<PagingData<T>>)

The class responsible for accessing the data from a Flow of PagingData. In order to obtain an instance of LazyPagingItems use the collectAsLazyPagingItems extension method of Flow with PagingData. This instance can be used by the items and itemsIndexed methods inside LazyListScope to display data received from the Flow of PagingData.

Parameters

T

the type of value used by PagingData.

Constructors

Link copied to clipboard
fun <T : Any> LazyPagingItems(state: State<PagingData<T>>)

Functions

Link copied to clipboard
fun retry()

Retry fetching data in case of error

Properties

Link copied to clipboard
val eventFlow: MutableSharedFlow<PagingViewEvent>

Flow of PagingViewEvent to be passed to the fr.haan.bipak.Pager instance

Link copied to clipboard
val loadState: PagingData.LoadState

Current load state (can be used to display a load indicator)