PWPagination Class Reference

Inherits from NSObject
Declared in PWPagination.h

Overview

PWPagination objects encapsulate all pagination details associated with fetching an array of content objects.

Other Methods

  fromResultIndex

The starting index for the returned results.

@property (nonatomic, readonly) NSUInteger fromResultIndex

Declared In

PWPagination.h

  toResultIndex

The ending index for the returned results.

@property (nonatomic, readonly) NSUInteger toResultIndex

Declared In

PWPagination.h

  totalResults

The total number of available results.

@property (nonatomic, readonly) NSUInteger totalResults

Declared In

PWPagination.h

  currentPage

The current results page.

@property (nonatomic, readonly) NSUInteger currentPage

Declared In

PWPagination.h

  numberOfPages

The total number of results pages available.

@property (nonatomic, readonly) NSUInteger numberOfPages

Declared In

PWPagination.h

Convenience

+ unpack:

Convenience method to instantiate a PWPagination object from a properly formatted NSDictionary object.

+ (instancetype)unpack:(NSDictionary *)dictionary

Parameters

dictionary

The dictionary from which to instantiate the PWPagination object.

Declared In

PWPagination.h