Siri可以在应用程序中禁用吗? [英] Can Siri be disabled within an app?

查看:102
本文介绍了Siri可以在应用程序中禁用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究iOS游戏,最近在iPhone 4S上进行过测试。当我的拇指盖住接近传感器时,Siri有时会激活。这是4S的一个特征。用户可以将手机放在耳边激活Siri,而不是按住主页按钮。但是在我的游戏中激活并不打算,它会打断游戏玩法。

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.

Siri可以在应用程序中禁用吗?这是iPhone 4S的错误吗?

Can Siri be disabled within an app? Is this an iPhone 4S bug?

推荐答案

Apple不赞成对此的支持。

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

我会提交错误报告。


讨论
是如果启用接近感应;否则没有。 启用接近感应会告诉iOS,如果用户的脸部靠近屏幕,则可能需要将屏幕空白。默认情况下禁用接近感应。

此替换只允许您获取通知,而不是禁用它。

This the replacement which only allows you to get notification, not disable it.


讨论
仅当您的应用程序
需要通知接近状态变化时才启用接近监控
即可。否则,
禁用接近监控。默认值为NO。

Discussion Enable proximity monitoring only when your application needs to be notified of changes to the proximity state. Otherwise, disable proximity monitoring. The default value is NO.

http://developer.apple.com/library/ios/DOCUMENTATION/UIKit/参考/ UIDevice_Class / Reference / UIDevice.html#// apple_ref / doc / uid / TP40006902-CH3-SW25

这篇关于Siri可以在应用程序中禁用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆