E - Type of Elements in Array.P - Type representing page.I - Type of FetchCommand Input.R - Type of FetchCommand Output.public interface IFetchedArrayViewModel<E extends IViewModel,P,I,R> extends IArrayViewModel<E>
IArrayViewModel which its array is lazily fetched, or even paginated.| Modifier and Type | Method and Description |
|---|---|
ICommand<I,R> |
getFetchCommand() |
ICommand<I,R> |
getFetchIfNeededCommand() |
P |
getNextPage() |
ICommand<I,R> |
getRefreshCommand() |
IProperty<java.lang.Boolean> |
hasNextPage() |
IProperty<java.lang.Boolean> |
isFetchingNextPage() |
IProperty<java.lang.Boolean> |
isRefreshing() |
getCount, getLocalizedEmptyMessage, getViewModel, getViewModels, indexOf, isEmptybindCommand, bindErrors, bindLoading, getActive, getErrors, getTitle, isEnabled, isLoadingIProperty<java.lang.Boolean> isRefreshing()
P getNextPage()
IProperty<java.lang.Boolean> isFetchingNextPage()
IProperty<java.lang.Boolean> hasNextPage()
ICommand<I,R> getFetchCommand()
nextPage is null, this command will refresh, else this command should fetch next page.ICommand<I,R> getFetchIfNeededCommand()
getFetchCommand() only if next page is non null or returns Observable.empty()