ViewCallback

abstract class ViewCallback(source)

The callback that links AsyncListUtil with the list view.

All methods are called on the main thread.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Scrolling in ascending order (from lower to higher positions in the order of the backing storage).
Link copied to clipboard
Scrolling in descending order (from higher to lower positions in the order of the backing storage).
Link copied to clipboard
No scroll direction hint available.

Functions

Link copied to clipboard
open fun extendRangeInto(@NonNull range: Array<Int>, @NonNull outRange: Array<Int>, scrollHint: Int)
Compute a wider range of items that will be loaded for smoother scrolling.
Link copied to clipboard
abstract fun getItemRangeInto(@NonNull outRange: Array<Int>)
Compute the range of visible item positions.
Link copied to clipboard
abstract fun onDataRefresh()
Called when the entire data set has changed.
Link copied to clipboard
abstract fun onItemLoaded(position: Int)
Called when an item at the given position is loaded.