开发者

Finding out, whether Bluetooth is enabled or not on an iPod/iPhone

开发者 https://www.devze.com 2023-01-11 11:56 出处:网络
I\'m writing an app, that automatically finds peers running the same app, so I need the Bluetooth-device.

I'm writing an app, that automatically finds peers running the same app, so I need the Bluetooth-device. But because of app-restrictions I'm not allowed to use the private framework to enable, or activate the Bluetooth-device. I'd rather avoid a pointless searching for peers if there's no po开发者_高级运维ssibility of finding them.

Is there any way to find out, whether it is already activated, so I could at least throw an error message?


Have you checked out the Game Kit Framework reference?

According to Apple:

Game Kit offers your applications the ability to create Bluetooth connections between two devices.

0

精彩评论

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