setRepeatMode

suspend fun setRepeatMode(state: State, deviceId: String? = null): SpotifyApiResponse<Boolean>

Sets playback repeat mode.

Return

Wrapped Spotify API response. data is true when Spotify accepted the operation.

Parameters

state

Repeat mode for playback (track, context, or off).

deviceId

Spotify Connect device ID that should execute the playback action.