Package de.sonallux.spotify.api.models
Class CurrentlyPlayingContext
java.lang.Object
de.sonallux.spotify.api.models.CurrentlyPlayingContext
CurrentlyPlayingContextObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionAllows to update the user interface based on which playback actions are available within the current context.A Context Object.The object type of the currently playing item.The device that is currently active.booleanIf something is currently playing, returntrue.The currently playing track or episode.intProgress into the currently playing track or episode.off, track, contextbooleanIf shuffle is on or off.intUnix Millisecond Timestamp when data was fetched. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
actions
Allows to update the user interface based on which playback actions are available within the current context.
-
context
A Context Object. Can be
null. -
currentlyPlayingType
The object type of the currently playing item. Can be one of
track,episode,adorunknown. -
device
The device that is currently active.
-
isPlaying
public boolean isPlayingIf something is currently playing, return
true. -
item
The currently playing track or episode. Can be
null. -
progressMs
public int progressMsProgress into the currently playing track or episode. Can be
null. -
repeatState
off, track, context
-
shuffleState
public boolean shuffleStateIf shuffle is on or off.
-
timestamp
public int timestampUnix Millisecond Timestamp when data was fetched.
-
-
Constructor Details
-
CurrentlyPlayingContext
public CurrentlyPlayingContext()
-