This is a Xamarin.iOS (MonoTouch) bindings for libspotify (tested with v12.1.51) that allows integrating Spotify Premium into your Xamarin.iOS application.
Bindings are pretty basic and do not provide complete spotify API access.
Bindings was made specially for Clerkd, it's free, check it out :)
- Authentication
- Search
- Artist, album browsing
- Artist, album, track info / image retrieval
- Songs playback (player provided only for iOS)
Not working: everything else, but it should be relatively easy to add required features using existing stuff.
Probably those bindings will also work with Xamarin.Android (Mono for Android), but you'll need to make a separate player to process raw data from spotify for it.
- Clone MonoLibSpotify repository
- Add this MonoLibSpotify project to your solution
- Download libspotify
- Copy "libspotify" binary to your project folder
- Look at
Example/Example.cs
for example on how to use bindings - Set additional mtouch arguments:
-cxx -gcc_flags "-L${ProjectDir} -all_load -force_load ${ProjectDir}/libspotify"
Run you app, login with Spotify Premium account and enjoy :)
Please, note that you'll have to make authorisation UI yourself.