Currently Playing Context
data class CurrentlyPlayingContext(timestamp: Long, device: Device, progressMs: Int?, isPlaying: Boolean, track: Track?, shuffleState: Boolean, repeatStateString: String, context: SpotifyContext?)
Content copied to clipboard
Information about the current playback
Parameters
timestamp
Unix Millisecond Timestamp when data was fetched
device
The device that is currently active
progressMs
Progress into the currently playing track. Can be null (e.g. If private session is enabled this will be null).
isPlaying
If something is currently playing.
track
The currently playing track. Can be null (e.g. If private session is enabled this will be null).
context
A Context Object. Can be null (e.g. If private session is enabled this will be null). Note: this will likely be null when playing the first track in a playlist or show context.
shuffleState
If shuffle is on or off
Constructors
CurrentlyPlayingContext
Link copied to clipboard
fun CurrentlyPlayingContext(timestamp: Long, device: Device, progressMs: Int? = null, isPlaying: Boolean, track: Track? = null, shuffleState: Boolean, repeatStateString: String, context: SpotifyContext? = null)
Content copied to clipboard
Unix Millisecond Timestamp when data was fetched
Properties
context
Link copied to clipboard
progressMs
Link copied to clipboard
repeatState
Link copied to clipboard
repeatStateString
Link copied to clipboard
shuffleState
Link copied to clipboard
Sources
common source
Link copied to clipboard