Can Siri be disabled within an app?

后端 未结 2 758
夕颜
夕颜 2021-02-18 22:26

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 hold

相关标签:
2条回答
  • 2021-02-18 22:57

    Setting :

    [UIDevice currentDevice].proximityMonitoringEnabled = YES; 
    

    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.

    0 讨论(0)
  • 2021-02-18 22:59

    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.

    Discussion YES if proximity sensing is enabled; otherwise NO. Enabling proximity sensing tells iOS that it may need to blank the screen if the user's face is near it. Proximity sensing is disabled by default.

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

    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/Reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/doc/uid/TP40006902-CH3-SW25

    0 讨论(0)
提交回复
热议问题