Package fr.haan.bipak
Types
Link copied to clipboard
class Pager<Key : Any, Value : Any>( scope: CoroutineScope, source: PagingDataSource<Key, Value>, initialKey: Key, config: PagingConfig = PagingConfig())
Content copied to clipboard
Primary entry point into Paging; constructor for a reactive stream of PagingData.
Link copied to clipboard
class PagingConfig @JvmOverloads constructor(val pageSize: Int = 10, val prefetchDistance: Int = pageSize / 2)
Content copied to clipboard
An object used to configure loading behavior within a Pager, as it loads content from a PagingSource.
Link copied to clipboard
data class PagingData<Value : Any>( val list: List<Value>, val state: PagingData.LoadState, val totalCount: Int?)
Content copied to clipboard
Link copied to clipboard
Base class for an abstraction of pageable static data from some source, where loading pages of data is typically an expensive operation. Some examples of common PagingDataSources might be from network or from a database.
Link copied to clipboard
Link copied to clipboard
Events going from UI layer to Pager allowing to fetch data