如何了解IOS 11中是否正在记录设备屏幕 [英] How to understand if device screen is being recorded in IOS 11
问题描述
我有一个具有版权内容的应用程序.我不希望用户记录它.如果他们开始录制屏幕,我希望我的应用程序能够捕捉到这一点.如果正在录制屏幕,捕获的功能是什么?
I have an application that it has copyrighted content. I don't want users to record it. If they start recording screen I want my app to catch this. What is the function to catch if the screen is being recorded?
我不想阻止,我想了解并抓住它.
I don't want to prevent, I want to understand and catch it.
注意:一些答案表明包括AirPlay和Mirroring在内的解决方案.我想要的是仅捕获在应用程序之前或期间启动的屏幕录像.我想允许用户使用AirPlay和Mirroring.
Note: Some answers indicate solutions including AirPlay and Mirroring. What I want is to only catch screen recording either started before or during app. I want to allow users to use AirPlay and Mirroring.
推荐答案
您可以检查此屏幕是否正在录制
You can check if the screen is being recorded with this
UIScreen.main.isCaptured
这篇关于如何了解IOS 11中是否正在记录设备屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!