如何触发iOS主页按钮长按

时间:2022-08-23 23:14:32

I want to trigger iPhone's home button long press event to open Siri from my application. How it is possible? Is there any way to do so using programming or Bluetooth HID protocol?

我想触发iPhone的主页按钮长按事件,从我的应用程序中打开Siri。怎么可能?有没有办法使用编程或蓝牙HID协议?

3 个解决方案

#1


0  

Accessing Siri from your code is not possible if you want to submit your app to the AppStore, but if you're not looking to do that, have a look at this:

如果您想将应用程序提交到AppStore,则无法从您的代码访问Siri,但如果您不想这样做,请查看以下内容:

*

堆栈溢出

About the HID protocol:

关于HID协议:

I don't think so, but I would not rely on this information.

我不这么认为,但我不会依赖这些信息。

#2


0  

From the App Store guidelines (slightly abbreviated):

从App Store指南(略有缩写):

Apps that alter the behavior of switches on the device will be rejected

将拒绝更改设备上交换机行为的应用

check here for more.

点击这里查看更多。

#3


0  

Its not possible. Apple haven't provided access to those API.

这是不可能的。 Apple尚未提供对这些API的访问权限。

Hope we will have it after WWDC 2015 :)

希望我们能在WWDC 2015之后拥有它:)

#1


0  

Accessing Siri from your code is not possible if you want to submit your app to the AppStore, but if you're not looking to do that, have a look at this:

如果您想将应用程序提交到AppStore,则无法从您的代码访问Siri,但如果您不想这样做,请查看以下内容:

*

堆栈溢出

About the HID protocol:

关于HID协议:

I don't think so, but I would not rely on this information.

我不这么认为,但我不会依赖这些信息。

#2


0  

From the App Store guidelines (slightly abbreviated):

从App Store指南(略有缩写):

Apps that alter the behavior of switches on the device will be rejected

将拒绝更改设备上交换机行为的应用

check here for more.

点击这里查看更多。

#3


0  

Its not possible. Apple haven't provided access to those API.

这是不可能的。 Apple尚未提供对这些API的访问权限。

Hope we will have it after WWDC 2015 :)

希望我们能在WWDC 2015之后拥有它:)