<legend id='xup5Y'><style id='xup5Y'><dir id='xup5Y'><q id='xup5Y'></q></dir></style></legend>
      • <bdo id='xup5Y'></bdo><ul id='xup5Y'></ul>

      <i id='xup5Y'><tr id='xup5Y'><dt id='xup5Y'><q id='xup5Y'><span id='xup5Y'><b id='xup5Y'><form id='xup5Y'><ins id='xup5Y'></ins><ul id='xup5Y'></ul><sub id='xup5Y'></sub></form><legend id='xup5Y'></legend><bdo id='xup5Y'><pre id='xup5Y'><center id='xup5Y'></center></pre></bdo></b><th id='xup5Y'></th></span></q></dt></tr></i><div id='xup5Y'><tfoot id='xup5Y'></tfoot><dl id='xup5Y'><fieldset id='xup5Y'></fieldset></dl></div>
      <tfoot id='xup5Y'></tfoot>
    1. <small id='xup5Y'></small><noframes id='xup5Y'>

    2. 我们如何在我们的 iphone 应用程序中检测到通话中断?

      时间:2023-10-23
      • <bdo id='ylT9U'></bdo><ul id='ylT9U'></ul>

        <i id='ylT9U'><tr id='ylT9U'><dt id='ylT9U'><q id='ylT9U'><span id='ylT9U'><b id='ylT9U'><form id='ylT9U'><ins id='ylT9U'></ins><ul id='ylT9U'></ul><sub id='ylT9U'></sub></form><legend id='ylT9U'></legend><bdo id='ylT9U'><pre id='ylT9U'><center id='ylT9U'></center></pre></bdo></b><th id='ylT9U'></th></span></q></dt></tr></i><div id='ylT9U'><tfoot id='ylT9U'></tfoot><dl id='ylT9U'><fieldset id='ylT9U'></fieldset></dl></div>
          <tfoot id='ylT9U'></tfoot>
            <tbody id='ylT9U'></tbody>
              1. <legend id='ylT9U'><style id='ylT9U'><dir id='ylT9U'><q id='ylT9U'></q></dir></style></legend>

                <small id='ylT9U'></small><noframes id='ylT9U'>

                本文介绍了我们如何在我们的 iphone 应用程序中检测到通话中断?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我需要在我的应用程序中检测来电中断.当应用程序处于活动状态并且有任何来电或短信时,我的应用程序会获取呼叫号码以防通话,并获取所有详细信息以防短信.我想将这些存储在我的应用程序中.

                I need to detect incoming call interruption in my application. When application is in active state and there is any incoming call or SMS, my application grab the calling number in case if call and all details in case of SMS. I want to store these in my application.

                这是否可以在我们的 iPhone 应用程序中检测到通话中断和来电短信提醒?

                Is this possible to detect Call interruption and incoming SMS alert in our iPhone application?

                推荐答案

                你将不得不使用 CoreTelephony 框架您可以使用 CTCall 类获取有关调用状态的信息.CTCallCenter 允许您注册呼叫事件状态更改,但您的应用程序需要处于运行状态.当您的应用程序移动到后台时,您可能需要请求最长后台时间(我猜是 10 分钟).这些 api 仅在 iOS 4.0 及更高版本中可用.您可以根据需要使用这些.

                You will have to use CoreTelephony Framework You can get information about the state of the call by using the CTCall class. the CTCallCenter allows you to register for call event state changes but your app needs to be in running state.You may want to request the maximum backgrounding time ( 10 minutes I guess) when your application is moved to the background. These api's are only available in iOS 4.0 and later. you can use these as required.

                extern NSString const *CTCallStateDialing;
                extern NSString const *CTCallStateIncoming;
                extern NSString const *CTCallStateConnected;
                extern NSString const *CTCallStateDisconnected;
                

                这篇关于我们如何在我们的 iphone 应用程序中检测到通话中断?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:需要有关 Objective-C 代码的帮助(生成的 WSDL2ObjC) 下一篇:使用 MPMoviePlayerController 或 AVPlayer (iOS) 播放受 M4V 保护的内容

                相关文章

                  <bdo id='LObdS'></bdo><ul id='LObdS'></ul>
              2. <legend id='LObdS'><style id='LObdS'><dir id='LObdS'><q id='LObdS'></q></dir></style></legend>
                <tfoot id='LObdS'></tfoot>

                <small id='LObdS'></small><noframes id='LObdS'>

                    <i id='LObdS'><tr id='LObdS'><dt id='LObdS'><q id='LObdS'><span id='LObdS'><b id='LObdS'><form id='LObdS'><ins id='LObdS'></ins><ul id='LObdS'></ul><sub id='LObdS'></sub></form><legend id='LObdS'></legend><bdo id='LObdS'><pre id='LObdS'><center id='LObdS'></center></pre></bdo></b><th id='LObdS'></th></span></q></dt></tr></i><div id='LObdS'><tfoot id='LObdS'></tfoot><dl id='LObdS'><fieldset id='LObdS'></fieldset></dl></div>