CurrentlyPlayingObject

fun CurrentlyPlayingObject(context: SpotifyContext? = null, timestamp: Long, progressMs: Int? = null, isPlaying: Boolean, track: Track? = null, currentlyPlayingTypeString: String, actions: PlaybackActions)

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.

track

The currently playing track. Can be null.

actions

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

Sources

common source
Link copied to clipboard