Callkit,锁定屏幕时如何禁用视频按钮?

问题描述 投票:2回答:2

作为iOS 10的新功能,CallKit功能强大。屏幕锁定后,如何禁用“视频”按钮?像图片底部:qazxsw poi

video lockscreen callkit
2个回答
1
投票

您必须将CXProviderConfiguration中的supportsVideo属性设置为NO。并且未设置supportedHandleTypes。


1
投票

您可以将CXProviderConfiguration类属性“supportsVideo”设置为NO,如下所示。

example

它将禁用视频功能。

更新:将CXCallUpdate属性“hasVideo”设置为NO。并删除remoteHandle。注意:如果删除remoteHandle属性,则无法从最近的日志回调。

© www.soinside.com 2019 - 2024. All rights reserved.