How to detect incoming and outgoing call END event

2019-08-29 09:37发布

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条回答
爷、活的狠高调
2楼-- · 2019-08-29 10:23

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.

查看更多
登录 后发表回答