detect if bluetooth device is connected in iPad application
is it possible to detect if a bluetoot开发者_Python百科h device is connected in your app code? I have a bluetooth device that works with my app but I want to show or hide it's capability based on whether a bluetooth device is connected or not.
I believe you can use EAAccessory for this:
EAAccessory Class Reference
Here is a blog post that shows some examples of how to use it:
iPhone: External Accessory Framework snippets
There is also a demo of the functionality here:
EADemo
精彩评论