startResumePlayback

suspend fun startResumePlayback(deviceId: String? = null, contextUri: String? = null, uris: Uris? = null, offset: Offset? = null, positionMs: Int? = null): SpotifyApiResponse<Boolean>

Starts or resumes playback on a Spotify Connect device.

Return

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

Parameters

deviceId

Spotify Connect device ID that should execute the playback action.

contextUri

Context URI to play (album, artist, playlist, or show).

uris

Spotify URIs of target resources.

offset

Playback offset object selecting where playback starts in the context.

positionMs

Playback position in milliseconds.