transferPlayback

suspend fun transferPlayback(deviceId: String, play: Boolean? = null)(source)

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

Requires the SpotifyScope.UserModifyPlaybackState scope

Api Reference

Parameters

deviceId

The device to play on

play

Whether to immediately start playback on the transferred device