如何在 CallKit 中使用 CXStartCallAction isVideo 属性 和原生视频按钮?
How are the CXStartCallAction isVideo property, and native video button used in CallKit?
我试图弄清楚当用户点击本机 iOS 呼叫屏幕中的视频按钮时会发生什么。我浏览了一些教程并查看了代码,它似乎不是委托方法或任何东西。
CXStartCallAction
有一个 属性: var isVideo: Bool
,但我似乎无法弄清楚它是如何使用的。
我注意到(在 Speakerbox 示例项目中)它将显示从 "Speakerbox Video" 更改为 "Speakerbox Audio",但我假设它还有其他用途。
更大的问题可能是"what does the video button do?"好像只是打开open,但不确定。
I'm trying to figure out what happens when the user taps the video
button in the native iOS call screen. I've gone through a few
tutorials and looked at the code and it doesn't appear to be a
delegate method or anything.
如果您在 phone 锁定时收到 CallKit 来电时正在谈论屏幕上的 "video" 按钮,它显然会向您发送一个新的 INStartVideoCallIntent
意图application(_:continue:restorationHandler:)
委托方法,就像用户在 Phone 应用的“最近通话”中点击您应用中的上一个视频通话一样,或者如果用户选择与联系人应用中的联系人进行视频通话。它还会尝试让用户解锁 phone 然后它会打开您的应用程序。
CXStartCallAction
has a property: var isVideo: Bool
, but I cannot
seem to figure out how it is used.
CXStartCallAction
用于拨出电话。 CallKit 通话是否被标记为视频或音频记录在 Phone 应用程序的最近通话中,如果您点击最近通话中的一行,它将向同一个人发出相同类型的通话。进行某种类型的呼叫也可能使您的应用程序显示为在联系人应用程序的联系人页面上进行该类型呼叫的默认选项,但我不确定它是如何工作的。当您锁定 phone 时,视频通话也不会结束,但音频通话会。
我试图弄清楚当用户点击本机 iOS 呼叫屏幕中的视频按钮时会发生什么。我浏览了一些教程并查看了代码,它似乎不是委托方法或任何东西。
CXStartCallAction
有一个 属性: var isVideo: Bool
,但我似乎无法弄清楚它是如何使用的。
我注意到(在 Speakerbox 示例项目中)它将显示从 "Speakerbox Video" 更改为 "Speakerbox Audio",但我假设它还有其他用途。
更大的问题可能是"what does the video button do?"好像只是打开open,但不确定。
I'm trying to figure out what happens when the user taps the video button in the native iOS call screen. I've gone through a few tutorials and looked at the code and it doesn't appear to be a delegate method or anything.
如果您在 phone 锁定时收到 CallKit 来电时正在谈论屏幕上的 "video" 按钮,它显然会向您发送一个新的 INStartVideoCallIntent
意图application(_:continue:restorationHandler:)
委托方法,就像用户在 Phone 应用的“最近通话”中点击您应用中的上一个视频通话一样,或者如果用户选择与联系人应用中的联系人进行视频通话。它还会尝试让用户解锁 phone 然后它会打开您的应用程序。
CXStartCallAction
has a property:var isVideo: Bool
, but I cannot seem to figure out how it is used.
CXStartCallAction
用于拨出电话。 CallKit 通话是否被标记为视频或音频记录在 Phone 应用程序的最近通话中,如果您点击最近通话中的一行,它将向同一个人发出相同类型的通话。进行某种类型的呼叫也可能使您的应用程序显示为在联系人应用程序的联系人页面上进行该类型呼叫的默认选项,但我不确定它是如何工作的。当您锁定 phone 时,视频通话也不会结束,但音频通话会。