Currently Playing Object
data class CurrentlyPlayingObject(context: SpotifyContext?, timestamp: Long, progressMs: Int?, isPlaying: Boolean, track: Track?, currentlyPlayingTypeString: String, actions: PlaybackActions)
Content copied to clipboard
Information about the currently playing track and context
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
Constructors
CurrentlyPlayingObject
Link copied to clipboard
fun CurrentlyPlayingObject(context: SpotifyContext? = null, timestamp: Long, progressMs: Int? = null, isPlaying: Boolean, track: Track? = null, currentlyPlayingTypeString: String, actions: PlaybackActions)
Content copied to clipboard
A Context Object.
Properties
actions
Link copied to clipboard
context
Link copied to clipboard
currentlyPlayingType
Link copied to clipboard
progressMs
Link copied to clipboard
Sources
common source
Link copied to clipboard