简体   繁体   English

自定义VOIP应用程序的iPhone Callkit呼叫屏幕

[英]Customize the iPhone Callkit calling screen for VOIP apps

I'm using the new CallKit framework to receive incoming VOIP calls using the system UI. 我正在使用新的CallKit框架来使用系统UI接收传入的VOIP呼叫。

Is it possible to add custom information to the system calling screen - for example a photo or extra text / a new UIView? 是否可以在系统调用屏幕上添加自定义信息,例如照片或其他文字/新的UIView?

Or is it possible to build your own calling screen and have that display in the same way? 还是可以建立自己的呼叫屏幕并以相同方式显示?

Thanks 谢谢

It is possible to customize the incoming caller's name which is shown in CallKit's native incoming call UI by setting the localizedCallerName property of the CXCallUpdate class. 通过设置CXCallUpdate类的localizedCallerName属性,可以自定义在CallKit的本机传入UI中显示的传入呼叫者的名称。 And if the user has an entry in their Contacts app relating to the handle specified in the CXCallUpdate's remoteHandle property, then that Contact's photo will be shown if there is one. 并且,如果用户在其“联系人”应用程序中有一个与CXCallUpdate的remoteHandle属性中指定的句柄相关的条目,则如果有该条目,则将显示该联系人的照片。

If you are interested in additional ways to customize the native CallKit UI I recommend filing an enhancement request using Apple's Bug Reporter system. 如果您对自定义本机CallKit UI的其他方式感兴趣,建议您使用Apple的Bug Reporter系统提交增强请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM