public static interface FlexibleAdapter.EndlessScrollListener
| Modifier and Type | Method and Description |
|---|---|
void |
noMoreLoad(int newItemsSize)
No more data to load.
|
void |
onLoadMore(int lastPosition,
int currentPage)
Loads more data.
|
void noMoreLoad(int newItemsSize)
This method is called if any limit is reached (targetCount or pageSize
must be set) AND if new data is temporary unavailable (ex. no connection or no
new updates remotely). If no new data, a FlexibleAdapter#notifyItemChanged(int, Object)
with a payload Payload.NO_MORE_LOAD is triggered on the progressItem.
newItemsSize - the last size of the new items loadedFlexibleAdapter.setEndlessTargetCount(int),
FlexibleAdapter.setEndlessPageSize(int)void onLoadMore(int lastPosition,
int currentPage)
Use lastPosition and currentPage to know what to load next.
lastPosition is the count of the main items without Scrollable Headers.lastPosition - the position of the last main item in the adaptercurrentPage - the current pagelastPosition and currentPage as parameters