0

We want to set a call-back function (or listener) to trigger some functionalities when a paired bluetooth device is connected to iPhone. I've found some related answers like this, this, or this, but all of them seem quite old.

Do we have a builtin or external library in iOS that enables an app to automatically check if a Bluetooth device is connected or not?

Any input will be greatly appreciated!

Community
  • 1
  • 1
makeasy
  • 907
  • 1
  • 6
  • 15

1 Answers1

0

You could observe the inputAvailable property of an AVAudioSession object via NSNotificationCenter.

Maurice
  • 1,466
  • 1
  • 13
  • 33