DataCallback

abstract class DataCallback<T>(source)

The callback that provides data access for AsyncListUtil.

All methods are called on the background thread.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun fillData(@NonNull data: Array<T>, startPosition: Int, itemCount: Int)
Fill the given tile.
Link copied to clipboard
Returns tile cache size limit (in tiles).
Link copied to clipboard
open fun recycleData(@NonNull data: Array<T>, itemCount: Int)
Recycle the objects created in fillData if necessary.
Link copied to clipboard
abstract fun refreshData(): Int
Refresh the data set and return the new data item count.