IviPagingSourceBase

abstract class IviPagingSourceBase<E : Any> constructor : IviPagingSource<E>

Generic base class for all IviPagingSource implementations.

To implement an IviPagingSource that contains the code to load data from a data source, use MutableIviPagingSource as a base class.

Constructors

Link copied to clipboard
fun IviPagingSourceBase()

Properties

Link copied to clipboard
override val invalid: Boolean

Functions

Link copied to clipboard
override fun invalidate()

Signal the PagingSource to stop loading. Same as PagingSource.invalidate. See PagingSource.invalidate for details.

Link copied to clipboard
override fun registerInvalidatedCallback(callback: () -> Unit)

Registers an invalidated callback. Same as PagingSource.registerInvalidatedCallback. See PagingSource.registerInvalidatedCallback for details.

Link copied to clipboard
override fun unregisterInvalidatedCallback(callback: () -> Unit)

Unregisters an invalidated callback. Same as PagingSource.unregisterInvalidatedCallback. See PagingSource.unregisterInvalidatedCallback for details.

Inherited functions

Link copied to clipboard
abstract suspend fun load(loadParams: IviPagingSource.LoadParams): IviPagingSource.LoadResult<E>

Loads a page. Same as PagingSource.load. See PagingSource.load for details.

Inheritors

Link copied to clipboard