OffsetPaginationIterator
public class OffsetPaginationIterator<ItemType> : PaginationIterator<ItemType> where ItemType : BoxModel
Implements pagination using offset. Learn more about offset based pagination here
-
Starting index for a next page.
Declaration
Swift
public private(set) var offset: Int
-
Maximum number of items for a page.
Declaration
Swift
public private(set) var limit: Int
-
Gets next collection of items based on offset values
Declaration
Swift
public override func nextItems(completion: @escaping Callback<[ItemType]>)
Parameters
completion
Returns either collection of items or an error.