Class SeekToPositionInCurrentlyPlayingTrackRequest

java.lang.Object
de.sonallux.spotify.api.apis.player.SeekToPositionInCurrentlyPlayingTrackRequest

public class SeekToPositionInCurrentlyPlayingTrackRequest extends Object

Seek To Position request

Required OAuth scopes

user-modify-playback-state

Response

Command sent

  • Constructor Details

    • SeekToPositionInCurrentlyPlayingTrackRequest

      public SeekToPositionInCurrentlyPlayingTrackRequest(ApiClient apiClient, int positionMs)
      Seek To Position request
      Parameters:
      apiClient -

      The API client

      positionMs -

      The position in milliseconds to seek to. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song.

  • Method Details

    • deviceId

      Parameters:
      deviceId -

      The id of the device this command is targeting. If not supplied, the user's currently active device is the target.

      Returns:
      this request
    • build

      public ApiCall<Void> build()
      Build the request into an executable api call
      Returns:
      an executable api call