Recommender | A recommender that generates a list of tracks based on a set of seed artists, genres, or tracks. Various parameters are allowed to fine-tune recommendations. Any unchanged parameters will be ignored. Spotify gives definitions for the "max", "min", and "target" parameters. A minimum parameter: A ha... |
native fun addToPlaylist(playlist, songList) | Adds the given song list to the given playlist. |
native fun createPlaylist(name) | Creates a new playlist with the given name. |
native fun createPlaylist(name, desc) | Creates a new playlist with the given name and description. |
native fun disableBlockingQueue() | When songs are played, they are added to the queue immediately. |
fun enableBlockingQueue() | When songs are played, they are added to the queue when the currently playing song ends. The first 2 songs will be added immediately as a buffer, but sequential ones will wait for the song to end befo... |
native fun enableBlockingQueue(fastPolling) | When songs are played, they are added to the queue when the currently playing song ends. The first 2 songs will be added immediately as a buffer, but sequential ones will wait for the song to end befo... |
fun onSongPlay(fn) | Calls a callback function when the currently playing song is changed on a Spotify account, with a polling time of 5000ms. |
native fun onSongPlay(fn, pollTime) | Calls a callback function when the currently playing song is changed on a Spotify account. |
Adds the given song list to the given playlist.
playlist
( collection )
|
The playlist to add the songs to |
songList
( list )
|
The list of songs to add to the playlist |
Creates a new playlist with the given name.
name
( string )
|
The name of the playlist |
The created playlist
Creates a new playlist with the given name and description.
The created playlist
When songs are played, they are added to the queue immediately.
When songs are played, they are added to the queue when the currently playing song ends. The first 2 songs will be added immediately as a buffer, but sequential ones will wait for the song to end before being added to the queue to not spam the queue.
When songs are played, they are added to the queue when the currently playing song ends. The first 2 songs will be added immediately as a buffer, but sequential ones will wait for the song to end before being added to the queue to not spam the queue.
fastPolling
( boolean )
|
If |