set Repeat Mode
suspend fun setRepeatMode(state: ClientPlayerApi.PlayerRepeatState, deviceId: String? = null)
Content copied to clipboard
Set the repeat mode for the user’s playback. Options are PlayerRepeatState.TRACK, PlayerRepeatState.CONTEXT, and PlayerRepeatState.OFF.
Requires the SpotifyScope.USER_MODIFY_PLAYBACK_STATE scope
Parameters
state
mode to describe how to repeat in the current context
deviceId
The device to play on
Sources
(source)
Link copied to clipboard