TiledDataSource

abstract class TiledDataSource<T : Any> : PositionalDataSource<T>

Functions

addInvalidatedCallback
Link copied to clipboard
open fun addInvalidatedCallback(onInvalidatedCallback: DataSource.InvalidatedCallback)
countItems
Link copied to clipboard
abstract fun countItems(): Int
invalidate
Link copied to clipboard
open fun invalidate()
loadInitial
Link copied to clipboard
open override fun loadInitial(params: PositionalDataSource.LoadInitialParams, callback: PositionalDataSource.LoadInitialCallback<T>)
loadRange
Link copied to clipboard
open override fun loadRange(params: PositionalDataSource.LoadRangeParams, callback: PositionalDataSource.LoadRangeCallback<T>)
abstract fun loadRange(startPosition: Int, count: Int): List<T>?
map
Link copied to clipboard
override fun <V : Any> map(function: Function<T, V>): PositionalDataSource<V>
override fun <V : Any> map(function: (T) -> V): PositionalDataSource<V>
mapByPage
Link copied to clipboard
override fun <V : Any> mapByPage(function: Function<List<T>, List<V>>): PositionalDataSource<V>
override fun <V : Any> mapByPage(function: (List<T>) -> List<V>): PositionalDataSource<V>
removeInvalidatedCallback
Link copied to clipboard
open fun removeInvalidatedCallback(onInvalidatedCallback: DataSource.InvalidatedCallback)

Properties

isInvalid
Link copied to clipboard
open val isInvalid: Boolean

Inheritors

RealmTiledDataSource
Link copied to clipboard