toggleShuffle

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

Toggle shuffle on or off for user’s playback.

Requires the SpotifyScope.UserModifyPlaybackState scope

Api Reference

Parameters

deviceId

The device to play on

shuffle

Whether to enable shuffling of playback