简体   繁体   English

EAAccessoryManager是否列出已连接的蓝牙耳机?

[英]Does EAAccessoryManager list bluetooth headsets connected?

根据标题,iOS会调用EAAccessoryManager.connectedAccessories返回连接的蓝牙耳机(包括未为iPhone进行注册的蓝牙耳机吗?不需要连接,但想知道我是否可以使用设备附近的位置来触发事件。

No. It will only return EAAccessory instances representing Made for iPod devices that publish a protocol. 不会。它只会返回代表发布协议的iPod设备的Made的EAAccessory实例。 From the External Accessory Programming Topics: 从外部附件编程主题:

Communicating with an external accessory requires you to work closely with the accessory manufacturer to understand the services provided by that accessory. 与外部附件进行通信需要您与附件制造商紧密合作,以了解该附件提供的服务。 Manufacturers must build explicit support into their accessory hardware for communicating with iOS. 制造商必须在其附件硬件中内置显式支持才能与iOS通信。 As part of this support, an accessory must support at least one command protocol, which is a custom scheme for sending data back and forth between the accessory and an attached application. 作为此支持的一部分,附件必须支持至少一个命令协议,这是一种用于在附件与连接的应用程序之间来回发送数据的自定义方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM