iosbluetoothheadset

Connect and disconnect from a Bluetooth headset


I have paired my iPhone with a specific Bluetooth headset. I would like to programmatically connect and disconnect from the headset but cannot seem to find the API to accomplish this.

Am I simply missing something?


Solution

  • Unfortunately, there is no API to interact with Bluetooth headsets.

    There are APIs for connecting to Bluetooth LE devices, called CoreBluetooth. But these APIs cannot be used to connect to bluetooth headsets. Users have to use the settings application to connect to them.