可以在应用程序中禁用 Siri 吗?
我正在开发一款 iOS 游戏,最近在 iPhone 4S 上进行了测试。当我的拇指覆盖接近传感器时,Siri 有时会激活。这是4S的一个特点。用户无需按住主页按钮,只需将手机放在耳边即可激活 Siri。但在我的游戏中,激活并不是有意的,它会中断游戏玩法。
可以在应用程序中禁用 Siri 吗?这是 iPhone 4S 的错误吗?
I'm working an on iOS game and recently tested on an iPhone 4S. Siri activates sometimes when my thumb covers the proximity sensor. This is a feature of the 4S. Instead of holding the home button, users can put the phone to their ear to activate Siri. But in my game the activation is not intended and it interrupts gameplay.
Can Siri be disabled within an app? Is this an iPhone 4S bug?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
设置:
当您激活接近传感器时,禁止 Siri 激活。结果,当接近传感器被激活时,它会黑屏。
Setting :
Disables Siri from activating when you activate the proximity sensor. As a result although, it blacks out the screen when the proximity sensor is activated instead.
Apple 已弃用对此的支持。
http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIApplication_Class/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/occ/instp/UIApplication/proximitySensingEnabled
我会提交一份错误报告。
这是替代方案,仅允许您获取通知,而不能禁用它。
http://developer.apple.com/library/ios/DOCUMENTATION/UIKit/Reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/doc/uid/TP40006902-CH3-SW25
Apple deprecated support for this.
http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIApplication_Class/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/occ/instp/UIApplication/proximitySensingEnabled
I'd file a bug report.
This the replacement which only allows you to get notification, not disable it.
http://developer.apple.com/library/ios/DOCUMENTATION/UIKit/Reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/doc/uid/TP40006902-CH3-SW25