SpotifyWebPlaybackEvent

enum SpotifyWebPlaybackEvent : Enum<SpotifyWebPlaybackEvent>

Entries

Ready
Link copied to clipboard
js
Ready("ready")
Emitted when the Web Playback SDK has successfully connected and is ready to stream content in the browser from Spotify.
NotReady
Link copied to clipboard
js
NotReady("not_ready")
Emitted when the Web Playback SDK is not ready to play content, typically due to no internet connection.
PlayerStateChanged
Link copied to clipboard
js
PlayerStateChanged("player_state_changed")
Emitted when the state of the local playback has changed.
InitializationError
Link copied to clipboard
js
InitializationError("initialization_error")
Emitted when the Spotify.Player fails to instantiate a player capable of playing content in the current environment.
AuthenticationError
Link copied to clipboard
js
AuthenticationError("authentication_error")
Emitted when the Spotify.Player fails to instantiate a valid Spotify connection from the access token provided to getOAuthToken.
AccountError
Link copied to clipboard
js
AccountError("account_error")
Emitted when the user authenticated does not have a valid Spotify Premium subscription.
PlaybackError
Link copied to clipboard
js
PlaybackError("playback_error")
Emitted when loading and/or playing back a track failed.

Functions

compareTo
Link copied to clipboard
js
operator override fun compareTo(other: SpotifyWebPlaybackEvent): Int
equals
Link copied to clipboard
js
operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
override fun hashCode(): Int
toString
Link copied to clipboard
js
open override fun toString(): String

Properties

name
Link copied to clipboard
js
val name: String
ordinal
Link copied to clipboard
js
val ordinal: Int
spotifyId
Link copied to clipboard
js
val spotifyId: String

Sources

(source)
Link copied to clipboard