如何防止用户在iOS上截取应用程序的屏幕截图? [英] How to prevent users taking screenshots of app on iOS?
问题描述
我想防止用户截取我的应用的屏幕截图,并在最近的项目上隐藏它的内容.您知道与 Android 的 FLAG_SECURE
功能等效的功能吗?https://developer.android.com/reference/android/视图/WindowManager.LayoutParams.html#FLAG_SECURE
I wanted to prevent users taking screenshots of my App and also hide it's content when it's on recent items. Do you know an equivalent to Android's FLAG_SECURE
feature? https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE
推荐答案
应用程序(恶意与否)无法在 iOS 上(无论是否在后台)截屏,期间.所以问题一开始就不存在.
Apps (malicious or not) cannot take screenshots on iOS (in background or not), period. So the problem does not exist in the first place.
应用可以:
将他们自己的 UI 渲染成图像,但这与屏幕截图不同.它仅限于他们自己的窗口,所以不是问题.
Render their own UI into an image, but that's not the same thing as a screenshot. It's limited to their own windows, so not a problem.
录制屏幕,但每次都需要用户授权.
Record screen, but with user's authorisation every time.
通过 ReplayKit 录制视频,但每次都需要用户授权.
Record videos via ReplayKit, but, again, with user's authorisation every time.
这篇关于如何防止用户在iOS上截取应用程序的屏幕截图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!