5

Need to be able to detect button keypress on headphone volume rocker (the +, -, and pause/middle button)

What is the best way to do this? Any help appreciated.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
  • 2
    Possible duplicate of [Detect headset button click on iPhone SDK](http://stackoverflow.com/questions/7428783/detect-headset-button-click-on-iphone-sdk) – mfaani Mar 24 '17 at 02:27
  • to read the headphone's middle button click event, use MPRemoteCommandCenter. like this https://stackoverflow.com/a/58249502/7353852 – Fitsyu Oct 05 '19 at 17:45

0 Answers0