Sync Android SDK  1.0.3
com.twilio.sync.SyncMapPaginator Interface Reference

Interface for paginating over SyncMap items retrieved using SyncMap#queryItems. More...

Classes

interface  Listener
 Interface for receiving async result from requestNextPage and requestPreviousPage. More...
 

Public Member Functions

ArrayList< SyncMap.Item > getItems ()
 
long getPageSize ()
 
boolean hasNextPage ()
 
boolean hasPreviousPage ()
 
void requestNextPage (Listener listener)
 Retrieve contents of a next page of the SyncMapPaginator. More...
 
void requestPreviousPage (Listener listener)
 Retrieve contents of a previous page of the SyncMapPaginator. More...
 

Detailed Description

Interface for paginating over SyncMap items retrieved using SyncMap#queryItems.

Member Function Documentation

ArrayList<SyncMap.Item> com.twilio.sync.SyncMapPaginator.getItems ( )
Returns
All SyncMap.Items of the current page. The order of items within the page is not guaranteed.
long com.twilio.sync.SyncMapPaginator.getPageSize ( )
Returns
The current page size.
boolean com.twilio.sync.SyncMapPaginator.hasNextPage ( )
Returns
true if next page exists, false otherwise.
boolean com.twilio.sync.SyncMapPaginator.hasPreviousPage ( )
Returns
true if previous page exists, false otherwise.
void com.twilio.sync.SyncMapPaginator.requestNextPage ( Listener  listener)

Retrieve contents of a next page of the SyncMapPaginator.

The order of items within the page is not guaranteed.

Parameters
listenerAsync result listener. See Listener.
void com.twilio.sync.SyncMapPaginator.requestPreviousPage ( Listener  listener)

Retrieve contents of a previous page of the SyncMapPaginator.

The order of items within the page is not guaranteed.

Parameters
listenerAsync result listener. See Listener.