Package com.abubusoft.kripton.android
Interface PageRequest
- All Known Subinterfaces:
PagedResult,PageNavigator,Paginator<E>
- All Known Implementing Classes:
PagedLiveData,PageRequestImpl
public interface PageRequest
The paged version of KriptonLiveData. A paged live data allows to move in the dataset with three parameters:
- page: current page.
- pageSize: is the number of elements retrieved from datasource. It is also used to define iteraction with
- offset: it is an alternative to page as navigation
system. It rapresents the distance from the first row. If you mix
offsetandnextPage, the behaviour will be strange (but not wrong). Just remember thatnextPageandpreviousPagework with pages and not withoffset.
- Author:
- xcesco
-
Method Summary
Modifier and Type Method Description static PageRequestbuild(int pageNumber, int pageSize)intgetOffset()Set the current offset from start of dataset.intgetPageNumber()Current pageintgetPageSize()Page size used to navigate
-
Method Details
-
build
-
getOffset
int getOffset()Set the current offset from start of dataset.- Returns:
-
getPageNumber
int getPageNumber()Current page- Returns:
- Current page
-
getPageSize
int getPageSize()Page size used to navigate- Returns:
- Page size used to navigate
-