How to detect incoming and outgoing call END event in my Iphone app?

孤人 提交于 2020-02-07 07:47:58

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/6802084/how-to-detect-incoming-and-outgoing-call-end-event-in-my-iphone-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!