Class CurrentlyPlayingContext

java.lang.Object
de.sonallux.spotify.api.models.CurrentlyPlayingContext

public class CurrentlyPlayingContext extends Object
CurrentlyPlayingContextObject
  • Field Details

    • actions

      public Disallows actions

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

    • context

      public Context context

      A Context Object. Can be null.

    • currentlyPlayingType

      public String currentlyPlayingType

      The object type of the currently playing item. Can be one of track, episode, ad or unknown.

    • device

      public Device device

      The device that is currently active.

    • isPlaying

      public boolean isPlaying

      If something is currently playing, return true.

    • item

      public BaseObject item

      The currently playing track or episode. Can be null.

    • progressMs

      public int progressMs

      Progress into the currently playing track or episode. Can be null.

    • repeatState

      public String repeatState

      off, track, context

    • shuffleState

      public boolean shuffleState

      If shuffle is on or off.

    • timestamp

      public int timestamp

      Unix Millisecond Timestamp when data was fetched.

  • Constructor Details

    • CurrentlyPlayingContext

      public CurrentlyPlayingContext()