You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param collectionUri Start playing an album, artist, or playlist
212
-
* @param playableUrisToPlay [PlayableUri] (Track or Local track URIs) uris to play. these are converted into URIs. Max 100
213
-
* @param offsetNum Indicates from where in the context playback should start. Only available when [playableUrisToPlay] is used.
214
-
* @param offsetPlayableUri Start playing at a track/local track uri instead of place number ([offsetNum])
218
+
* @param artistId Start playing an artist
219
+
* @param playlistId Start playing a playlist
220
+
* @param albumId Start playing an album
221
+
* @param artistId Start playing an artist
222
+
*
223
+
* @param offsetLocalTrackId Start playing at a local track in the given/current context
224
+
* @param offsetTrackId Start playing at a track in the given/current context
225
+
* @param offsetEpisodeId Start playing at an episode in the given/current context
226
+
*
227
+
* @param offsetIndex Indicates from where in the given/current context playback should start. Zero-based indexing.
228
+
*
229
+
* @param localTrackIdsToPlay A list of local track ids to play. Max 100 combined between [localTrackIdsToPlay], [trackIdsToPlay], and [episodeIdsToPlay]
230
+
* @param trackIdsToPlay A list of track ids to play. Max 100 combined between [localTrackIdsToPlay], [trackIdsToPlay], and [episodeIdsToPlay]
231
+
* @param episodeIdsToPlay A list of episode ids to play. Max 100 combined between [localTrackIdsToPlay], [trackIdsToPlay], and [episodeIdsToPlay]
232
+
*
233
+
* @param deviceId The device to play on
234
+
*
235
+
* @throws BadRequestException if more than one type of play type is specified or the offset is illegal.
236
+
*/
237
+
publicsuspendfunstartPlayback(
238
+
// context uris
239
+
artistId:String? = null,
240
+
playlistId:String? = null,
241
+
albumId:String? = null,
242
+
showId:String? = null,
243
+
// offset playables
244
+
offsetLocalTrackId:String? = null,
245
+
offsetTrackId:String? = null,
246
+
offsetEpisodeId:String? = null,
247
+
// offset num
248
+
offsetIndex:Int? = null,
249
+
// ids of playables to play
250
+
trackIdsToPlay:List<String>? = null,
251
+
localTrackIdsToPlay:List<String>? = null,
252
+
episodeIdsToPlay:List<String>? = null,
253
+
deviceId:String? = null
254
+
) {
255
+
if (listOfNotNull(artistId, playlistId, albumId, showId).size >1) {
256
+
throwIllegalArgumentException("Only one of: artistId, playlistId, albumId, showId can be specified.")
0 commit comments