Local Track
data class LocalTrack(album: SimpleLocalAlbum, artists: List<SimpleLocalArtist>, href: String?, id: String?, discNumber: String?, durationMs: Int?, explicit: Boolean?, isLocal: Boolean, name: String, popularity: Int?, trackNumber: Int?, type: String, uri: LocalTrackUri) : IdentifiableNullable, Playable
Content copied to clipboard
Local track object that representing a song uploaded from a client locally
Parameters
artists
The artists who performed the track.
discNumber
The disc number.
durationMs
The track length in milliseconds.
explicit
Whether or not the track has explicit lyrics ( true = yes it does; false = no it does not OR unknown).
href
A link to the Web API endpoint providing full details of the track.
id
The Spotify ID for the track.
name
The name of the track.
trackNumber
The number of the track. If an album has several discs, the track number is the number on the specified disc.
type
The object type: “track”.
isLocal
Whether or not the track is from a local file.
popularity
the popularity of this track. possibly null
Constructors
LocalTrack
Link copied to clipboard
fun LocalTrack(album: SimpleLocalAlbum, artists: List<SimpleLocalArtist>, href: String? = null, id: String? = null, discNumber: String? = null, durationMs: Int? = null, explicit: Boolean? = null, isLocal: Boolean = true, name: String, popularity: Int? = null, trackNumber: Int? = null, type: String, uri: LocalTrackUri)
Content copied to clipboard
The artists who performed the track.
Functions
component1
Link copied to clipboard
component10
Link copied to clipboard
component11
Link copied to clipboard
component12
Link copied to clipboard
component13
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
component5
Link copied to clipboard
component6
Link copied to clipboard
component7
Link copied to clipboard
component8
Link copied to clipboard
component9
Link copied to clipboard
copy
Link copied to clipboard
fun copy(album: SimpleLocalAlbum, artists: List<SimpleLocalArtist>, href: String? = null, id: String? = null, discNumber: String? = null, durationMs: Int? = null, explicit: Boolean? = null, isLocal: Boolean = true, name: String, popularity: Int? = null, trackNumber: Int? = null, type: String, uri: LocalTrackUri): LocalTrack
Content copied to clipboard
searchForSpotifyTrack
Link copied to clipboard
suspend fun searchForSpotifyTrack(limit: Int? = null, offset: Int? = null, market: Market? = null): PagingObject<Track>
Content copied to clipboard
Properties
album
Link copied to clipboard
api
Link copied to clipboard
artists
Link copied to clipboard
asLocalTrack
Link copied to clipboard
asPodcastEpisodeTrack
Link copied to clipboard
discNumber
Link copied to clipboard
durationMs
Link copied to clipboard
popularity
Link copied to clipboard
trackNumber
Link copied to clipboard
uri
Link copied to clipboard
Sources
(source)
Link copied to clipboard