spotify_sdk 0.0.4 copy "spotify_sdk: ^0.0.4" to clipboard
spotify_sdk: ^0.0.4 copied to clipboard

outdated

A flutter plugin that let's you communicate with the flutter sdk

spotify_sdk #

Description #

This will be a spotify_sdk package for flutter using both the spotify-app-remote sdk and spotify-auth library. The auth library is needed to get the authentication token to work with the web api.

Setup #

Android #

From the Spotify Android SDK Quick Start. You need two things:

  1. register your app in the spotify developer portal. You also need to create a sha-1 fingerprint and add this and your package name to the app settings on the dashboard.
  2. download the current Spotify Android SDK. Here you need the spotify-app-remote-.aar and spotify-auth-.aar.

After you are all setup you need to add the *.aar files to your Android Project as Modules. See the Spotify Android SDK Quick Start for detailed information.

Important here is the naming so that the package can find the modules.

  • Remote: spotify-app-remote
  • Auth: spotify-auth

Usage #

tbd

Api #

Function Description Android iOS
connectToSpotifyRemote Connects the App to Spotify ✔️ 👷
getAuthenticationToken Gets the Authentication Token that you can use to work with the Web Api ✔️ 👷
queue Queues given spotifyUri ✔️ 👷
play Plays the given spotifyUri ✔️ 👷
pause Pauses the current track ✔️ 👷
resume Resumes the current track ✔️ 👷
skipNext Skips to next track ✔️ 👷
skipPrevious Skips to previous track ✔️ 👷
seekTo Seeks the current track to the given position in milliseconds ✔️ 👷
seekToRelativePosition Adds to the current position of the track the given milliseconds ✔️ 👷
toggleShuffle Cycles through the shuffle modes ✔️ 👷
toggleRepeat Cycles through the repeat modes ✔️ 👷
addToLibrary Adds the given spotifyUri to the users library ✔️ 👷
getCrossfadeState Gets the current crossfade state ✔️ 👷
getPlayerState Gets the current player state ✔️ 👷
getImage Get the image from the given spotifyUri 👷 👷
logout logs the user out and disconnects the app connection 👷 👷

Docs #

139
likes
0
pub points
90%
popularity

Publisher

verified publisherminimalme.de

A flutter plugin that let's you communicate with the flutter sdk

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, json_annotation, logger

More

Packages that depend on spotify_sdk