1

I remember the keyword audio route changes and believe there was a notification for this. What's the easiest way to intercept that the user unplugged headphones or plugged headphones in?

openfrog
  • 40,201
  • 65
  • 225
  • 373

1 Answers1

2

You want to read this piece of Apple documentation. It's not a notification (as in send by NSNotificationCenter), but it notifies on audio route changes.

JustSid
  • 25,168
  • 7
  • 79
  • 97
  • @openfrog Not that I was aware of, but here is a small class that abstracts some of the stuff: https://gist.github.com/4183012 – JustSid Dec 01 '12 at 16:04