setRepeatMode

suspend fun setRepeatMode(state: ClientPlayerApi.PlayerRepeatState, deviceId: String? = null)

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

Api Reference

Parameters

state

mode to describe how to repeat in the current context

deviceId

The device to play on

Sources

(source)
Link copied to clipboard