IviDataSourceIpc
IPC interface of an IviDataSource.
Parameters
E
Element type of the data source.
Q
Query type of the data source.
Types
Properties
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
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.