transferPlayback

suspend fun transferPlayback(deviceId: String, play: Boolean = false): HttpStatusCode(source)

Transfer playback to another device

Return

HttpStatusCode.NoContent if the request succeeded, HttpStatusCode.NotFound if the device was not found, HttpStatusCode.Forbidden if the user is non-premium

Parameters

deviceId

The ID of the device to which the playback should be transferred

play

If true, the playback will start, if false or not provided, the current playback state will be kept