Detect if headphones (not microphone) are plugged in to an iOS device

Viewed 16246

I need to change my audio depending on whether or not headphones are plugged in. I'm aware of kAudioSessionProperty_AudioInputAvailable, which will tell me if there's a microphone, but I'd like to test for any headphones, not just headphones with a built-in microphone. Is this possible?

4 Answers
Related