I have found the answer for objective-c, but couldn't figure out how to translate it to c# for monotouch.
Also, I couldn't find anything in the Xamarian tutorial or reference.
Could someone please give an example of how to do it?
I have found the answer for objective-c, but couldn't figure out how to translate it to c# for monotouch.
Also, I couldn't find anything in the Xamarian tutorial or reference.
Could someone please give an example of how to do it?
I don't think this is possible (since iOS 5), see here:
Detecting the iPhone's Ring / Silent / Mute switch using AVAudioPlayer not working?
In general, Apple doesn't allow access to things like this.