SKRecentTrack

public struct SKRecentTrack : Track, Decodable

A recently played Spotify track.

See also

The Web API Play History object.
  • The date and time the track was last played, with millisecond precision.

    Declaration

    Swift

    public let datePlayed: Date
  • The context from which the track was played, such as an album or playlist.

    Declaration

    Swift

    public let context: SKPlaybackContext
  • 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 }
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public typealias CursorType = Date