I would like to use Bluetooth as a drive for an app.
I need to be able to let the user pick a chosen device from 'Settings>Bluetooth>My Devices', so I am looking for how I can get this list in my code.
Once I have the details of the selected device, I would like to be able to register for notifications whenever this device is connected (or whenever any bluetooth device connects and I can parse the data to check for a match).
The devices I am looking for are Car Kit's. Looking at the console log when I try this in my own car, I notice that I see mediaserverd[19] : BTAudioXpcConnection.cpp within the console log. I am assuming therefore that the LEAudio perhaps points to the need to use the Low Energy side?
In short, 1) I need to list the paired devices, and 2) I need to get a notification when a given device connects.
Can anyone advise if this is possible, and if so, point me at some useful documentation, as the docs I have read so far do not seem to give me what I need.
Thanks.