IviDataSourceIpcBinderProxy
class IviDataSourceIpcBinderProxy<E : Any, Q : Any>(binderData: IviDataSourceIpcBinderData<E, Q>, binderContext: BinderContext) : IviDataSourceIpc<E, Q>
Content copied to clipboard
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)
Content copied to clipboard
Properties
Link copied to clipboard
Listener of the IviDataSource.
Functions
Link copied to clipboard
open suspend override fun createIviPagingSource(pagingSourceId: IviPagingSourceId, query: Q): IviDataSourceIpc.CreateIviPagingSourceResult
Content copied to clipboard
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)
Content 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
open suspend override fun loadPageFromIviPagingSource(pagingSourceId: IviPagingSourceId, loadParams: IviPagingSource.LoadParams): IviPagingSource.LoadResult<E>
Content copied to clipboard
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.