simple-spotify-capacitor
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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 sync

API

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

Package Sidebar

Install

npm i simple-spotify-capacitor

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

11.3 MB

Total Files

91

Last publish

Collaborators

  • ruedaderepuesto