简体   繁体   English

iOS-是否可以通过编程方式检测有人何时在其拨号盘上按数字?

[英]Ios- is there a way to programmatically detect when someone presses a number on their dial pad?

I am making an app that will act as an office phone. 我正在制作一个将用作办公室电话的应用程序。 However is there a way to programmatically detect whether someone pressed "1" or "2" on the their dial pad and then send it back to me (who has the app) or send a voice recording of some kind. 但是,有一种方法可以通过程序检测是否有人在其拨号盘上按下了“ 1”或“ 2”,然后将其发送回给我(有应用程序)或发送某种录音。 For example, if they press "1" it notifies me they want English and I can send them a voice recoding in English. 例如,如果他们按“ 1”,则通知我他们想要英语,我可以向他们发送英语语音录制。

Thank you. 谢谢。

You're talking about having your app get info about what the user does from the phone app, and the ability to inject sounds into the speaker? 您是在说让您的应用从电话应用中获取有关用户操作的信息,以及是否可以将声音注入扬声器?

No, Apple does not allow 3rd party apps to interact with the phone like this. 不可以,Apple不允许第三方应用程序这样与手机互动。

You could display a number pad inside your app and respond to taps when the user presses numbers in your app, but not during a phone call. 您可以在应用程序内部显示一个数字键盘,并在用户按下应用程序中的数字时响应轻按,但不会在通话过程中响应。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM