开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜