IviDataSourceIpcBinderProxy

class IviDataSourceIpcBinderProxy<E : Any, Q : Any>(binderData: IviDataSourceIpcBinderData<E, Q>, binderContext: BinderContext) : IviDataSourceIpc<E, Q>

Client side implementation of an IviDataSourceIpc interface.

Parameters

E

Element type of the data source.

Q

Query type of the data source.

Constructors

Link copied to clipboard
fun <E : Any, Q : Any> IviDataSourceIpcBinderProxy(binderData: IviDataSourceIpcBinderData<E, Q>, binderContext: BinderContext)

Properties

Link copied to clipboard
open override val jumpingSupported: Boolean
Link copied to clipboard
open override val keyReuseSupported: Boolean
Link copied to clipboard
open override var listener: IviDataSourceListener? = null

Listener of the IviDataSource.

Functions

Link copied to clipboard
open suspend override 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
open suspend override 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
open suspend override 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.