set Repeat Mode
suspend fun setRepeatMode(state: ClientPlayerApi.PlayerRepeatState, deviceId: String? = null)(source)
Set the repeat mode for the user’s playback. Options are PlayerRepeatState.Track, PlayerRepeatState.Context, and PlayerRepeatState.Off.
Requires the SpotifyScope.UserModifyPlaybackState scope
Parameters
state
mode to describe how to repeat in the current context
device Id
The device to play on