SupportPagingLiveDataSource

A data source that is targeted for androidx.paging.PagedList without a backing source

Since

v1.3.0

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open val isInvalid: Boolean
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
Link copied to clipboard
open override fun invalidate()

Signal the data source to stop loading, and notify its callback.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun <ToValue : Any> map(function: Function<V, ToValue>): PageKeyedDataSource<K, ToValue>
override fun <ToValue : Any> map(function: (V) -> ToValue): PageKeyedDataSource<K, ToValue>
Link copied to clipboard
override fun <ToValue : Any> mapByPage(function: (List<V>) -> List<ToValue>): PageKeyedDataSource<K, ToValue>
Link copied to clipboard
open suspend override fun refresh()

Invalidate data source and, re-run the last successful or last failed request if applicable

Link copied to clipboard
Link copied to clipboard
open suspend override fun retryFailed()

Performs the necessary operation to invoke a network retry request