开发者

detect if bluetooth device is connected in iPad application

开发者 https://www.devze.com 2023-01-31 07:38 出处:网络
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 whet

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

精彩评论

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