CurrentlyPlayingObject

constructor(context: SpotifyContext? = null, timestamp: Long, progressMs: Int? = null, isPlaying: Boolean, item: Playable? = null, currentlyPlayingTypeString: String, actions: PlaybackActions)(source)

Parameters

context

A Context Object. Can be null.

timestamp

Unix Millisecond Timestamp when data was fetched

progressMs

Progress into the currently playing track. Can be null.

isPlaying

If something is currently playing.

item

The currently playing track or episode. Can be null.

actions

Allows to update the user interface based on which playback actions are available within the current context