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.
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
component5
Link copied to clipboard
component7
Link copied to clipboard
copy
Link copied to clipboard
fun copy(context: SpotifyContext? = null, timestamp: Long, progressMs: Int? = null, isPlaying: Boolean, track: Track? = null, currentlyPlayingTypeString: String, actions: PlaybackActions): CurrentlyPlayingObject
Content copied to clipboard
Properties
actions
Link copied to clipboard
context
Link copied to clipboard
currentlyPlayingType
Link copied to clipboard
progressMs
Link copied to clipboard
Sources
(source)
Link copied to clipboard