Frage

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?

Thanks!

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top