如何在我的Iphone应用程序中检测传入和传出呼叫END事件? [英] How to detect incoming and outgoing call END event in my Iphone app?

查看:148
本文介绍了如何在我的Iphone应用程序中检测传入和传出呼叫END事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个场景:
我从我的应用程序发出一个电话。当呼叫结束时,我需要触发诸如调用Web服务的事件。在核心电话框架工作中如何使用CTcallcenter?你可以使用蜂窝电话状态为此目的



CTCallStateDialing



在建立连接之前,当用户发起呼叫时。



CTCallStateIncoming



呼叫状态在连接建立之前,是传入但尚未被用户应答。



CTCallStateConnected



当所有各方完全建立呼叫时的通话状态参与其中。



CTCallStateDisconnected



呼叫终止时的通话状态


Here is a scenario: I make a call from my application .When the call ends i need to fire a event such as calling a web service .How can do with CTcallcenter in core telephony frame work ?

Thank you

解决方案

you can use Cellular Call States for this purpose

CTCallStateDialing

The call state, before connection is established, when the user initiates the call.

CTCallStateIncoming

The call state, before connection is established, when a call is incoming but not yet answered by the user.

CTCallStateConnected

The call state when the call is fully established for all parties involved.

CTCallStateDisconnected

The call state upon call termination.

这篇关于如何在我的Iphone应用程序中检测传入和传出呼叫END事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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