public final class NoPaginate extends java.lang.Object implements OnAdapterChangeListener, OnRepeatListener
| Modifier and Type | Method and Description |
|---|---|
void |
onAdapterChange() |
void |
onClickRepeat() |
void |
setNoMoreItems(boolean isNoMoreItems)
This method show error on the bottom of your recyclerView.
|
void |
showError(boolean isShowError)
This method will show error on the bottom of your recyclerView.
|
void |
showLoading(boolean show)
This method will show error on the bottom of your recyclerView.
|
void |
unbind()
This method unsubscribe observer and change listeners reference to null
for avoid memory leaks.
|
static NoPaginateBuilder |
with(android.support.v7.widget.RecyclerView recyclerView) |
public static NoPaginateBuilder with(@NonNull android.support.v7.widget.RecyclerView recyclerView)
public void onAdapterChange()
onAdapterChange in interface OnAdapterChangeListenerpublic void showError(boolean isShowError)
isShowError - - true if show, false if hidepublic void showLoading(boolean show)
show - - true if show, false if hidepublic void setNoMoreItems(boolean isNoMoreItems)
isNoMoreItems - - true if items ended, false if nopublic void onClickRepeat()
onClickRepeat in interface OnRepeatListenerpublic void unbind()