TWSListPaginator Class Reference

Inherits from NSObject
Declared in TWSListPaginator.h

Overview

Paging interface to interact with list item query results.

– getItems

Obtain the list of items contained in this page of results.

- (nonnull NSArray<TWSListItem*> *)getItems

Return Value

An array of TWSListItem objects.

Discussion

Obtain the list of items contained in this page of results.

Declared In

TWSListPaginator.h

– hasNextPage

Determine if there is a next page of results.

- (BOOL)hasNextPage

Return Value

BOOL indicating the presence of a next page of results.

Discussion

Determine if there is a next page of results.

Declared In

TWSListPaginator.h

– hasPreviousPage

Determine if there is a previous page of results.

- (BOOL)hasPreviousPage

Return Value

BOOL indicating the presence of a previous page of results.

Discussion

Determine if there is a previous page of results.

Declared In

TWSListPaginator.h

– requestNextPageWithCompletion:

Request the next page of results for this query, if one exists.

- (void)requestNextPageWithCompletion:(nonnull TWSListPaginatorCompletion)completion

Parameters

completion

Completion block that will specify the result of the operation and a paginator for the new page of results.

Discussion

Request the next page of results for this query, if one exists.

Declared In

TWSListPaginator.h

– requestPreviousPageWithCompletion:

Request the previous page of results for this query, if one exists.

- (void)requestPreviousPageWithCompletion:(nonnull TWSListPaginatorCompletion)completion

Parameters

completion

Completion block that will specify the result of the operation and a paginator for the new page of results.

Discussion

Request the previous page of results for this query, if one exists.

Declared In

TWSListPaginator.h