spotify-web-api-kotlin
/
com.adamratzman.spotify.webplayer
/
PlayerInit
js
Player
Init
external interface
PlayerInit
Content copied to clipboard
Options for instantiating the
Player
Properties
Sources
Properties
getOAuthToken
Link copied to clipboard
js
abstract var
getOAuthToken
: (cb: (token:
String
) ->
Unit
) ->
Unit
Content copied to clipboard
This will be called every time you run Spotify.Player#connect or when a user's access token has expired (maximum of 60 minutes).
name
Link copied to clipboard
js
abstract var
name
:
String
Content copied to clipboard
The name of the Spotify Connect player.
volume
Link copied to clipboard
js
open var
volume
:
Number
?
Content copied to clipboard
The default volume of the player.
Sources
js source
Link copied to clipboard