SKPlaybackContext

public struct SKPlaybackContext : Decodable

A structure containing values identifying the context in which a particular track is played, such as an album, artist, or playlist.

  • The possible contexts in which a track can be played.

    See more

    Declaration

    Swift

    public enum ContextType : String, Codable
  • The type of context, such as an album, artist, or playlist. See ContextType for more details.

    Declaration

    Swift

    public let type: ContextType
  • Known external URLs for this context. See external URL object for more details.

    Declaration

    Swift

    public let externalURLs: [String : URL]
  • uri

    The Spotify URI for the context.

    Declaration

    Swift

    public let uri: String
  • url

    A link to the Web API endpoint providing full details of the context.

    Declaration

    Swift

    public let url: URL