SKPlaylistTrack

public struct SKPlaylistTrack : Track, JSONDecodable

A Spotify track that has been added to a Spotify playlist.

See also

The Web API Playlist Track object.
  • The date and time the track was added.

    Note

    Some very old playlists may return nil in this field.

    Declaration

    Swift

    public let dateAdded: Date?
  • The Spotify user who added the track.

    Note

    Some very old playlists may return nil in this field.

    Declaration

    Swift

    public let userAdded: SKUser?
  • Whether this track is a local file or not.

    Declaration

    Swift

    public let isLocal: Bool
  • Declaration

    Swift

    public var artists: [SKArtist] { get }
  • Declaration

    Swift

    public var availableMarkets: [String]? { get }
  • Declaration

    Swift

    public var contentRating: SKContentRating { get }
  • Declaration

    Swift

    public var discNumber: Int { get }
  • Declaration

    Swift

    public var duration: TimeInterval { get }
  • Declaration

    Swift

    public var externalURLs: [String : URL] { get }
  • Declaration

    Swift

    public var isPlayable: Bool? { get }
  • id

    Declaration

    Swift

    public var id: String { get }
  • uri

    Declaration

    Swift

    public var uri: String { get }
  • url

    Declaration

    Swift

    public var url: URL { get }
  • Declaration

    Swift

    public var trackLinks: SKTrackLinks? { get }
  • Declaration

    Swift

    public var name: String { get }
  • Declaration

    Swift

    public var previewURL: URL? { get }
  • Declaration

    Swift

    public var trackNumber: Int { get }
  • Declaration

    Swift

    public var album: SKAlbum? { get }
  • Declaration

    Swift

    public var externalIDs: [String : String]? { get }
  • Declaration

    Swift

    public var popularity: Int? { get }