Currently Playing Context
constructor(timestamp: Long, device: Device, progressMs: Int? = null, isPlaying: Boolean, item: Playable? = null, shuffleState: Boolean, repeatStateString: String, context: SpotifyContext? = null)(source)
Parameters
timestamp
Unix Millisecond Timestamp when data was fetched
device
The device that is currently active
progress Ms
Progress into the currently playing track. Can be null (e.g. If private session is enabled this will be null).
is Playing
If something is currently playing.
item
The currently playing item (track or episode). 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.
shuffle State
If shuffle is on or off