toggleShuffle

suspend fun toggleShuffle(shuffle: Boolean = true, deviceId: String? = null): String

Toggle shuffle on or off for user’s playback.

Requires the SpotifyScope.USER_MODIFY_PLAYBACK_STATE scope

Api Reference

Parameters

deviceId

The device to play on

shuffle

Whether to enable shuffling of playback

Sources

(source)
Link copied to clipboard