0

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?

Liam George Betsworth
  • 18,373
  • 5
  • 39
  • 42
vovacooper
  • 141
  • 2
  • 6

1 Answers1

2

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.

Community
  • 1
  • 1
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182