PagingIterator

public class PagingIterator<Element> where Element : BoxModel

Provides paged iterator access for a collection of BoxModel’s

  • Gets offset, marker or stream position for the next page

    Declaration

    Swift

    public private(set) var nextPage: PagingParameter
  • The total count of the result set, if known

    Declaration

    Swift

    public let totalCount: Int?
  • Gets next element from the iterator

    Declaration

    Swift

    public func next(completion: @escaping Callback<Element>)

    Parameters

    completion

    Returns either the next element or an error. If the iterator has no more elements, a BoxSDKError with a message of BoxSDKErrorEnum.noSuchElement is passed to the completion.