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 |
|---|---|
IProperty<java.lang.Boolean> |
fetchingNextPage() |
ICommand<I,R> |
getFetchCommand() |
ICommand<I,R> |
getFetchIfNeededCommand() |
P |
getNextPage() |
ICommand<I,R> |
getRefreshCommand() |
IProperty<java.lang.Boolean> |
hasNextPage() |
IProperty<java.lang.Boolean> |
refreshing() |
count, empty, getViewModel, getViewModels, indexOf, localizedEmptyMessageactive, bindCommand, bindErrors, bindLoading, enabled, errors, loading, titleIProperty<java.lang.Boolean> refreshing()
P getNextPage()
IProperty<java.lang.Boolean> fetchingNextPage()
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()