Client Player Api
These endpoints allow for viewing and controlling user playback. Please view the official documentation for more information on how this works. This is in beta and is available for premium users only. Endpoints are not guaranteed to work and are subject to change!
Constructors
ClientPlayerApi
Link copied to clipboard
Types
PlayerRepeatState
Link copied to clipboard
Functions
getCurrentContext
Link copied to clipboard
getCurrentlyPlaying
Link copied to clipboard
getDevices
Link copied to clipboard
getRecentlyPlayed
Link copied to clipboard
suspend fun getRecentlyPlayed(limit: Int? = api.spotifyApiOptions.defaultLimit, before: String? = null, after: String? = null): CursorBasedPagingObject<PlayHistory>
Content copied to clipboard
setRepeatMode
Link copied to clipboard
suspend fun setRepeatMode(state: ClientPlayerApi.PlayerRepeatState, deviceId: String? = null)
Content copied to clipboard
skipBehind
Link copied to clipboard
skipForward
Link copied to clipboard
startPlayback
Link copied to clipboard
suspend fun startPlayback(collection: CollectionUri? = null, offsetNum: Int? = null, offsetPlayableUri: PlayableUri? = null, deviceId: String? = null, playableUrisToPlay: List<PlayableUri> = emptyList())
Content copied to clipboard
toggleShuffle
Link copied to clipboard
suspend fun toggleShuffle(shuffle: Boolean = true, deviceId: String? = null): String
Content copied to clipboard
transferPlayback
Link copied to clipboard
Properties
Sources
(source)
Link copied to clipboard