added in version 24.1.0
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1

AsyncListUtil.ViewCallback

public static abstract class AsyncListUtil.ViewCallback
extends Object

java.lang.Object
   ↳ android.support.v7.util.AsyncListUtil.ViewCallback


The callback that links AsyncListUtil with the list view.

All methods are called on the main thread.

Summary

Constants

int HINT_SCROLL_ASC

Scrolling in ascending order (from lower to higher positions in the order of the backing storage).

int HINT_SCROLL_DESC

Scrolling in descending order (from higher to lower positions in the order of the backing storage).

int HINT_SCROLL_NONE

No scroll direction hint available.

Public constructors

AsyncListUtil.ViewCallback()

Public methods

void extendRangeInto(int[] range, int[] outRange, int scrollHint)

Compute a wider range of items that will be loaded for smoother scrolling.

abstract void getItemRangeInto(int[] outRange)

Compute the range of visible item positions.

abstract void onDataRefresh()

Called when the entire data set has changed.

abstract void onItemLoaded(int position)

Called when an item at the given position is loaded.

Inherited methods

From class java.lang.Object

Constants

HINT_SCROLL_ASC

added in version 24.1.0
int HINT_SCROLL_ASC

Scrolling in ascending order (from lower to higher positions in the order of the backing storage).

Constant Value: 2 (0x00000002)

HINT_SCROLL_DESC

added in version 24.1.0
int HINT_SCROLL_DESC

Scrolling in descending order (from higher to lower positions in the order of the backing storage).

Constant Value: 1 (0x00000001)

HINT_SCROLL_NONE

added in version 24.1.0
int HINT_SCROLL_NONE

No scroll direction hint available.

Constant Value: 0 (0x00000000)

Public constructors

AsyncListUtil.ViewCallback

added in version 24.1.0
AsyncListUtil.ViewCallback ()