CurrentlyPlayingContext

fun CurrentlyPlayingContext(timestamp: Long, device: Device, progressMs: Int? = null, isPlaying: Boolean, track: Track? = null, shuffleState: Boolean, repeatStateString: String, context: Context? = null)

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).

shuffleState

If shuffle is on or off

Sources

(source)
Link copied to clipboard