removeListener

open fun removeListener(event: String)(source)

Remove all event listeners registered under a specific event type in the Web Playback SDK. Please use SpotifyWebPlaybackEvent.spotifyId to get web playback events' spotify ids

Return

Returns a Boolean. Returns true if the event name is valid with registered callbacks from #addListener.


open fun removeListener(event: String, cb: ErrorListener = definedExternally)(source)

Remove a specific ErrorListener registered under event type event in the Web Playback SDK.


open fun removeListener(event: String, cb: PlaybackPlayerListener = definedExternally)(source)

Remove a specific PlaybackPlayerListener registered under event type event in the Web Playback SDK. Please use SpotifyWebPlaybackEvent.spotifyId to get web playback events' spotify ids


open fun removeListener(event: String, cb: PlaybackStateListener = definedExternally)(source)

Remove a specific PlaybackStateListener registered under event type event in the Web Playback SDK. Please use SpotifyWebPlaybackEvent.spotifyId to get web playback events' spotify ids