使用Callkit接听电话后如何在Call UI中打开in [英] How do you open the in Call UI after answering a call with callkit

查看:50
本文介绍了使用Callkit接听电话后如何在Call UI中打开in的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将callkit与我的voip应用程序集成.此时,CallKit会显示一个来电,但是当我按接听键时,它会立即返回到应用程序的显示主屏幕.我希望在按下接听键时显示CallKit的通话中UI.

I am trying to integrate callkit with my voip app. At this point the CallKit displays an incoming call but as soon as I press the answer key it just goes back to my app's display homescreen. I want the in call UI of CallKit to display when I press the answer key.

func provider( _ provider: CXProvider, perform action: CXAnswerCallAction) {
    XCPjsua.shared()?.handleIncomingCall();
//    confifureAudioSession()
    action.fulfill()
}

XCPjsua.shared()?. handleIncomingCall(); 函数中,我只是连接呼叫.

In the XCPjsua.shared()?.handleIncomingCall(); function I just connect the call.

推荐答案

CallKit 提供了更好的系统集成和VoIP应用程序可见性,但是它们限制了呼叫屏幕的使用.您必须自己提供呼叫UI.

CallKit provides better integration to the system and better VoIP app visibility, but they limit the use of their call screens. You must provide call UI yourself.

在VoIP应用程序中使用 CallKit 的主要目的是在应用程序被杀死并且电话被锁定时提高其可用性.通过使用 CallKit ,系统将VoIP应用程序的共享音频会话提升为最高优先级,以改善用户体验. CallKit 还负责改善您与系统服务的集成,例如免提蓝牙集成,汽车娱乐,Siri等.

The main purpose of using CallKit in your VoIP app is to improve its usability when app is killed and phone is locked. By using CallKit, system elevates the shared audio session of your VoIP app as the top priority, in order to improve the user experience. CallKit is also responsible to improve your integration to the system services, like handsfree bluetooth integration, car play, Siri, etc.

这篇关于使用Callkit接听电话后如何在Call UI中打开in的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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