public final class NoPaginateBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
NoPaginate |
build()
This method build all configurations
|
NoPaginateBuilder |
setCustomErrorItem(ErrorItem errorItem)
This method set custom error item.
|
NoPaginateBuilder |
setCustomLoadingItem(LoadingItem loadingItem)
This method set custom loading item.
|
NoPaginateBuilder |
setLoadingTriggerThreshold(int loadingTriggerThreshold)
Set the offset from the end of the list at which the load more event needs to be triggered.
|
NoPaginateBuilder |
setOnLoadMoreListener(OnLoadMoreListener loadMoreListener)
This method setup OnLoadMoreListener object, which will called when you need load data
|
public NoPaginateBuilder setOnLoadMoreListener(@NonNull OnLoadMoreListener loadMoreListener)
loadMoreListener - object of OnLoadMoreListenerpublic NoPaginateBuilder setLoadingTriggerThreshold(int loadingTriggerThreshold)
loadingTriggerThreshold - number of items from the end of the list.public NoPaginateBuilder setCustomLoadingItem(@NonNull LoadingItem loadingItem)
loadingItem - is implementation of LoadingItempublic NoPaginateBuilder setCustomErrorItem(@NonNull ErrorItem errorItem)
errorItem - is implementation of ErrorItempublic NoPaginate build()
NoPaginate