Page

public struct Page<Element> : OffsetPagingCollection, JSONDecodable where Element : Decodable

A generic collection that provides offset-based paginated results from a Spotify Web API request.

See also

The Web API Paging object.
  • Declaration

    Swift

    public var startIndex: Int { get }
  • Declaration

    Swift

    public var endIndex: Int { get }
  • Declaration

    Swift

    public subscript(position: Int) -> Element { get }
  • Declaration

    Swift

    public func index(after i: Int) -> Int
  • Declaration

    Swift

    public func index(before i: Int) -> Int
  • Declaration

    Swift

    public let limit: Int
  • Declaration

    Swift

    public let total: Int?
  • url

    Declaration

    Swift

    public let url: URL
  • Declaration

    Swift

    public let nextURL: URL?
  • Declaration

    Swift

    public let previousURL: URL?
  • Declaration

    Swift

    public let offset: Int