PlaylistTrack

data class PlaylistTrack(primaryColor: String?, addedAt: String?, addedBy: SpotifyPublicUser?, isLocal: Boolean?, track: Playable?, videoThumbnail: VideoThumbnail?)

Represents a Spotify track inside a Playlist

Parameters

primaryColor

Unknown. Undocumented field

addedAt

The date and time the track was added. Note that some very old playlists may return null in this field.

addedBy

The Spotify user who added the track. Note that some very old playlists may return null in this field.

isLocal

Whether this track is a local file or not.

track

Information about the track. In rare occasions, this field may be null if this track's API entry is broken. Warning: if this is a podcast, the track will be null if you are using SpotifyAppApi.

Constructors

PlaylistTrack
Link copied to clipboard
common
fun PlaylistTrack(primaryColor: String? = null, addedAt: String? = null, addedBy: SpotifyPublicUser? = null, isLocal: Boolean? = null, track: Playable? = null, videoThumbnail: VideoThumbnail? = null)
Unknown.

Properties

addedAt
Link copied to clipboard
common
val addedAt: String? = null
The date and time the track was added.
addedBy
Link copied to clipboard
common
val addedBy: SpotifyPublicUser? = null
The Spotify user who added the track.
isLocal
Link copied to clipboard
common
val isLocal: Boolean? = null
Whether this track is a local file or not.
primaryColor
Link copied to clipboard
common
val primaryColor: String? = null
Unknown.
track
Link copied to clipboard
common
val track: Playable? = null
Information about the track.
videoThumbnail
Link copied to clipboard
common
val videoThumbnail: VideoThumbnail? = null

Sources

common source
Link copied to clipboard