CoreBluetooth または EAAccessoryManager を使用して、車内で iPhone がハンズフリー システムとペアリングされているかどうかを知ることは可能ですか? そうでない場合、それを行う別の方法はありますか?
質問する
841 次
1 に答える
0
If the iPhone considers the car an accessory you can get the connected accessories by calling:
[[EAAccessoryManager sharedAccessoryManager] connectedAccessories];
This will return an array of EAAccessory
objects which you can then query to get certain information like the name: accessory.name
.
I don't know for certain of this will work with cars having never tried it myself (I have used it with other accessories), so I would suggest that you create a test app that logs the connected accessories to the screen on demand and test it yourself.
Here's the documentation for EAAccessoryManager and EAAccessory.
于 2014-11-28T16:27:13.830 に答える