simple-spotify-capacitor
v1.0.0
Published
Spotify control capacitor
Maintainers
Readme
simple-spotify-capacitor
Spotify control capacitor
Desc
In developement Simple Capacitor plugin to use Spotify iOS SDK Se debe ignorar que escribo comentarios en ingles y español, mi cerebro no funciona bien :)
Install
npm install simple-spotify-capacitor
npx cap syncAPI
playSong(...)
playSong(song: SpotifySong) => Promise<void>| Param | Type |
| ---------- | --------------------------------------------------- |
| song | SpotifySong |
pause()
pause() => Promise<void>resume()
resume() => Promise<void>skipPrev()
skipPrev() => Promise<void>skipNext()
skipNext() => Promise<void>getPlayerState()
getPlayerState() => Promise<SpotifyPlayerStatus>Returns: Promise<SpotifyPlayerStatus>
authorize(...)
authorize(song: SpotifySong) => Promise<void>| Param | Type |
| ---------- | --------------------------------------------------- |
| song | SpotifySong |
setup(...)
setup(options: SpotifyOptions) => Promise<void>| Param | Type |
| ------------- | --------------------------------------------------------- |
| options | SpotifyOptions |
Interfaces
SpotifySong
| Prop | Type |
| --------- | ------------------- |
| url | string |
SpotifyPlayerStatus
| Prop | Type |
| ---------------------- | -------------------- |
| paused | boolean |
| podcast | boolean |
| songId | string |
| songName | string |
| albumName | string |
| artistName | string |
| position | number |
| duration | number |
| title | string |
| coverImageBase64 | string |
SpotifyOptions
| Prop | Type |
| ----------------- | ------------------- |
| clientId | string |
| redirectUri | string |
