Google 致力于为黑人社区推动种族平等。查看具体举措

RxPagingSource

abstract class RxPagingSource<Key : Any, Value : Any> : PagingSource<Key, Value>
kotlin.Any
   ↳ androidx.paging.PagingSource<Key, Value>
   ↳ androidx.paging.rxjava2.RxPagingSource

Rx-based compatibility wrapper around PagingSource's suspending APIs.


//Unresolved: androidx.paging.samples.rxPagingSourceSample

Summary

Public constructors

Rx-based compatibility wrapper around PagingSource's suspending APIs.

Public methods
suspend PagingSource.LoadResult<Key, Value>

Loading API for PagingSource.

abstract Single<PagingSource.LoadResult<Key, Value>>

Loading API for PagingSource.

Inherited functions
Inherited properties

Public constructors

<init>

RxPagingSource()

Rx-based compatibility wrapper around PagingSource's suspending APIs.


//Unresolved: androidx.paging.samples.rxPagingSourceSample

Public methods

load

suspend fun load(params: PagingSource.LoadParams<Key>): PagingSource.LoadResult<Key, Value>

Loading API for PagingSource.

Implement this method to trigger your async load (e.g. from database or network).

loadSingle

abstract fun loadSingle(params: PagingSource.LoadParams<Key>): Single<PagingSource.LoadResult<Key, Value>>

Loading API for PagingSource.

Implement this method to trigger your async load (e.g. from database or network).