Model - public static interface EndlessScrollHelper.ResultReceiver<Model>
EndlessScrollHelper where
onLoadMore() results are to be delivered.
The underlying implementation is safe to use by any background-thread, as long as only 1
thread is using it. Results delivered via deliverNewItems(List) are automatically
dispatched to the RecyclerView's message queue (i.e. to be delivered in the ui thread).| Modifier and Type | Method and Description |
|---|---|
boolean |
deliverNewItems(java.util.List<Model> result)
Delivers the result of an
onLoadMore() for the
current page. |
int |
getReceiverPage() |
int getReceiverPage()
boolean deliverNewItems(java.util.List<Model> result)
onLoadMore() for the
current page. This method must be called only once.result - the result of an onLoadMore()EndlessScrollHelper is no longer
in use (and it has been garbage collected).java.lang.IllegalStateException - when more than one results are delivered.