IviDataSourceIpc

interface IviDataSourceIpc<E : Any, Q : Any>

IPC interface of an IviDataSource.

Parameters

E

Element type of the data source.

Q

Query type of the data source.

Types

Properties

Link copied to clipboard
abstract val jumpingSupported: Boolean
Link copied to clipboard
abstract val keyReuseSupported: Boolean
Link copied to clipboard
abstract var listener: IviDataSourceListener?

Listener of the IviDataSource.

Functions

Link copied to clipboard
abstract suspend fun createIviPagingSource(pagingSourceId: IviPagingSourceId, query: Q): IviDataSourceIpc.CreateIviPagingSourceResult

Creates an IviPagingSource for the given query and associate it with the given pagingSourceId.

Link copied to clipboard
abstract suspend fun invalidateIviPagingSource(pagingSourceId: IviPagingSourceId)

Invalidates an IviPagingSource identified by pagingSourceId. The IviPagingSource must have been created though createIviPagingSource before this function can be used.

Link copied to clipboard
abstract suspend fun loadPageFromIviPagingSource(pagingSourceId: IviPagingSourceId, loadParams: IviPagingSource.LoadParams): IviPagingSource.LoadResult<E>

Load a page from an IviPagingSource identified by pagingSourceId and the given loadParams. Returns the result. The IviPagingSource must have been created through createIviPagingSource before this function can be used.

Inheritors

Link copied to clipboard