hooks.ql

hooks.ql
Contents of the file.

Function Overview

Function Description
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.

Functions

fun onSongPlay(fn) link

Calls a callback function when the currently playing song is changed on a Spotify account, with a polling time of 5000ms.

Params
fn ( function )

The function to call with the song as an argument

native fun onSongPlay(fn, pollTime) link

Calls a callback function when the currently playing song is changed on a Spotify account.

Params
fn ( function )

The function to call with the song as an argument

pollTime ( int )

The milliseconds to wait between polling