AbstractPagingDataSource

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val loadState: Flow<LoadState>

Observable for network state during requests that the UI can monitor and act based on state changes

Link copied to clipboard
open override val requestHelper: RequestHelper

Request helper that controls the flow of requests to the implementing data source to avoid multiple requests of the same type before others are completed for this instance

Functions

Link copied to clipboard
abstract suspend fun clearDataSource(context: CoroutineDispatcher)
Link copied to clipboard
abstract suspend fun invalidate()
Link copied to clipboard
open fun onItemAtEndLoaded(itemAtEnd: T)
Link copied to clipboard
open fun onItemAtFrontLoaded(itemAtFront: T)
Link copied to clipboard
Link copied to clipboard
abstract suspend fun refresh()
Link copied to clipboard
abstract suspend fun retryFailed()