Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ScriptingBridge

$
0
0

Hello

I've been experimenting a bit with Xamarin over the last few weeks, however I seem to have hit a brick wall now...

I'm looking to get an App communicating with iTunes, so I thought that ScriptingBridge would be my answer. However there seems to be little to no documentation about Xamarin's implementation of it to work with. Here is my problem. In the Apple tutorials for Obj-C, you declare an SBApplication as a specific type in order to access the relevant properties and methods. So for iTunes they do this: iTunesApplication *iTunes = [SBApplication applicationWithBundleIdentifier:@"com.apple.iTunes"]; Which then allows for this [iTunes setSoundVolume:0];

In other languages such as MacRuby, you can just do iTunes = SBApplication.applicationWithBundleIdentifier_("com.apple.iTunes") which appears to dynamically attach the extra bits and bobs to the object.

I have got as far as this in Xamarin SBApplication iTunes = SBApplication.FromBundleIdentifier("com.apple.iTunes"); However I now cannot understand how I get access to methods such as .Play() or properties such as .currentTrack.

Any help would be much appreciated :)


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>