gpt4 book ai didi

iOS EAAccessory 框架 : waking previously paired accessories that do not automatically connect

转载 作者:可可西里 更新时间:2023-11-01 04:51:52 25 4
gpt4 key购买 nike

我在 Apple website 上找到了那:

Support is also provided for waking previously paired accessories that do not automatically connect.

这对我很有用,因为用户不需要在每次启动应用程序之前都进行配对。

我提到了 EAAccessory Manager API , 但似乎没有这样的调用。

任何人都可以为我提供更多关于这个主题的引用吗?我该怎么做?

最佳答案

此主题在 EAAccessoryManager Class Reference 中进行了解释, 关于 showBluetoothAccessoryPickerWithNameFilter:completion:就是说:

This method synchronously displays an alert containing the list of Bluetooth accessories that have been discovered by the current device and that match the specified filter (if any). The user can select an accessory from this list and pair the device to it. Pairing an accessory updates the accessory manager’s list of connected accessories and generates a corresponding connection notification.

当然仅仅成功连接外部设备是不够的,因为你必须在调用这个方法之前和之后多做一些步骤,比如在你的“Supported external accessory protocols”属性中添加外部设备的协议(protocol)字符串项目的 plist 等,但这将是另一个问题的答案。希望对您有所帮助。

关于iOS EAAccessory 框架 : waking previously paired accessories that do not automatically connect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22783084/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com