public final class Paginator<T>
extends java.lang.Object
Channels.getPublicChannels(com.twilio.chat.CallbackListener<com.twilio.chat.Paginator<com.twilio.chat.ChannelDescriptor>>)
.Modifier and Type | Method and Description |
---|---|
void |
dispose() |
java.util.ArrayList<T> |
getItems()
Get items available in the current page.
|
long |
getPageSize()
Amount of items in the current page.
|
boolean |
hasNextPage()
If the paginator has more pages, returns true.
|
void |
requestNextPage(CallbackListener<Paginator<T>> listener)
Query the next page.
|
public java.util.ArrayList<T> getItems()
public long getPageSize()
public boolean hasNextPage()
public void requestNextPage(CallbackListener<Paginator<T>> listener)
listener
- Listener to receive paginator with the next page contents.public void dispose()