transferPlaybackRestAction

fun transferPlaybackRestAction(deviceId: String, play: Boolean? = null): SpotifyRestAction<Unit>

Transfer playback to a new device and determine if it should start playing.

Requires the SpotifyScope.USER_MODIFY_PLAYBACK_STATE scope

Api Reference

Parameters

deviceId

The device to play on

play

Whether to immediately start playback on the transferred device

Sources

(source)
Link copied to clipboard