1

Is it possible to detect audio outputs like airpods, regular headphones or remote speakers connected to the device and get their properties?

Thanks!

kubi1000
  • 45
  • 5
  • possible duplicate of https://stackoverflow.com/questions/26996269/headphones-plugin-out-detection-in-swift – Harjot Singh Oct 11 '18 at 15:38
  • I don't believe this is a duplicate. The linked question is about detecting route changes, not enumerating all possible routes. – Rob Napier Oct 11 '18 at 16:08
  • 2
    While this is impossible, I'm curious what you plan to do with this information. There are important privacy reasons that this information isn't available (currentRoute already leaks some important privacy information, but some of it is necessary). What problem are you trying to solve; there may be another solution. – Rob Napier Oct 11 '18 at 16:11
  • My app does not stream audio through devices connected by bluetooth. It is only possible to play on speaker or devices connected to jack port. – kubi1000 Oct 12 '18 at 07:46
  • 1
    You can achieve that by just checking the current route and observing route changes. There's no need to check all possible routes. – Rob Napier Oct 12 '18 at 13:46

1 Answers1

1

No. Only currentRoute is available through the public API.

Rob Napier
  • 286,113
  • 34
  • 456
  • 610