CurrentlyPlayingObject

data class CurrentlyPlayingObject(context: PlayHistoryContext?, timestamp: Long, progressMs: Int?, isPlaying: Boolean, track: Track, currentlyPlayingTypeString: String, actions: PlaybackActions)

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
common
fun CurrentlyPlayingObject(context: PlayHistoryContext? = null, timestamp: Long, progressMs: Int? = null, isPlaying: Boolean, track: Track, currentlyPlayingTypeString: String, actions: PlaybackActions)
A Context Object.

Functions

component1
Link copied to clipboard
common
operator fun component1(): PlayHistoryContext?
component2
Link copied to clipboard
common
operator fun component2(): Long
component3
Link copied to clipboard
common
operator fun component3(): Int?
component4
Link copied to clipboard
common
operator fun component4(): Boolean
component5
Link copied to clipboard
common
operator fun component5(): Track
component7
Link copied to clipboard
common
operator fun component7(): PlaybackActions
copy
Link copied to clipboard
common
fun copy(context: PlayHistoryContext? = null, timestamp: Long, progressMs: Int? = null, isPlaying: Boolean, track: Track, currentlyPlayingTypeString: String, actions: PlaybackActions): CurrentlyPlayingObject
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

actions
Link copied to clipboard
common
val actions: PlaybackActions
Allows to update the user interface based on which playback actions are available within the current context
context
Link copied to clipboard
common
val context: PlayHistoryContext? = null
A Context Object.
currentlyPlayingType
Link copied to clipboard
common
val currentlyPlayingType: CurrentlyPlayingType
The object type of the currently playing item.
isPlaying
Link copied to clipboard
common
val isPlaying: Boolean
If something is currently playing.
progressMs
Link copied to clipboard
common
val progressMs: Int? = null
Progress into the currently playing track.
timestamp
Link copied to clipboard
common
val timestamp: Long
Unix Millisecond Timestamp when data was fetched
track
Link copied to clipboard
common
val track: Track
The currently playing track.

Sources

(source)
Link copied to clipboard