Package dev.arunkumar.compass.paging

Types

RealmTiledDataSource
Link copied to clipboard
class RealmTiledDataSource<T : RealmModel, R : Any> : TiledDataSource<R>
Paging DataSource implementation that uses RealmQuery produced by realmQueryBuilder to fetch matching results and transform to transform the source RealmModel to any custom type represented by R.
TiledDataSource
Link copied to clipboard
abstract class TiledDataSource<T : Any> : PositionalDataSource<T>

Functions

asPagingItems
Link copied to clipboard
fun <T : RealmModel> RealmQueryBuilder<T>.asPagingItems(tag: String = "PagingItemsExecutor", pagingConfig: PagingConfig = DefaultPagingConfig): Flow<PagingData<T>>
Returns Flow<PagingData<T> with results that match the io.realm.RealmQuery produced by the builder.
fun <T : RealmModel, R : Any> RealmQueryBuilder<T>.asPagingItems(tag: String = "PagingItemsExecutor", pagingConfig: PagingConfig = DefaultPagingConfig, transform: RealmModelTransform<T, R>): Flow<PagingData<R>>
Returns Flow<PagingData<T> with results that match the io.realm.RealmQuery produced by the builder.

Properties

DefaultPagingConfig
Link copied to clipboard
val DefaultPagingConfig: PagingConfig