如何使用callkit获取来电号码

编程入门 行业动态 更新时间:2024-10-11 17:27:22
本文介绍了如何使用callkit获取来电号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何使用call kit框架以编程方式获取来电号码。我尝试使用cxcallobserver类但没有用。

How to get the incoming call phone number programmatically by using call kit framework. i tried with cxcallobserver class but no use.

任何建议最有帮助...

Any suggestions most helpful...

推荐答案

使用CallKit的Call Blocking&识别功能(iOS 10中的新功能),要阻止或识别的电话号码在来电之前由应用程序的呼叫目录分机加载,并且电话号码由系统存储。然后,当来电到达时,系统会查询此存储的数据,并且可以在提供标签的来电UI中阻止或识别来电。

When using CallKit's Call Blocking & Identification feature (new in iOS 10), phone numbers to be blocked or identified are loaded by your app's Call Directory extension prior to an incoming call and the phone numbers are stored by the system. Then, when an incoming call arrives, this stored data is consulted by the system and an incoming call may either be blocked or identified in the incoming call UI with the label provided.

出于隐私和性能原因,当来电到达且应用分机无法检索来电的电话号码时,呼叫目录应用扩展程序不会启动。

For privacy and performance reasons, Call Directory app extensions are not launched when incoming calls arrive and an app extension cannot retrieve the phone number for an incoming call.

更多推荐

如何使用callkit获取来电号码

本文发布于:2023-11-29 14:04:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1646600.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   号码   callkit

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!