Package-level declarations

Types

Link copied to clipboard
external interface Album
Link copied to clipboard
external interface Artist
Link copied to clipboard
external interface Error
Link copied to clipboard
external interface Image
Link copied to clipboard
external interface PlaybackContext

Playback context for the player

Link copied to clipboard
external interface PlaybackDisallows

A simplified set of restriction controls for the track. By default, these fields will either be set to false or undefined, which indicates that the particular operation is allowed. When the field is set to true, this means that the operation is not permitted. For example, skipping_next, skipping_prev and seeking will be set to true when playing an ad track.

Link copied to clipboard
external interface PlaybackRestrictions
Link copied to clipboard
external interface PlaybackState

This is an object that is provided every time Spotify.Player#getCurrentState is called. It contains information on context, permissions, playback state, the user’s session, and more.

Link copied to clipboard
external interface PlaybackTrackWindow
Link copied to clipboard
open external class Player(options: PlayerInit)

The main constructor for initializing the Web Playback SDK. It should contain an object with the player name, volume and access token.

Link copied to clipboard
external interface PlayerInit

Options for instantiating the Player

Link copied to clipboard
external interface Track
Link copied to clipboard
external interface WebPlaybackInstance

This is an object that is provided in the ready event as an argument. WebPlaybackPlayer objects contain information related to the current player instance of the Web Playback SDK.