我希望我的 Xamarin Forms 应用程序禁用屏幕截图。有办法这样做吗?
注意:我找到了纯 Android 和 iOS 版本的解决方案,但我需要 Xamarin 解决方案。如果有办法以某种方式嵌入纯 Android 和 iOS 解决方案,我也接受。
谢谢 :)
没有100%有效的阻止用户截屏/录制的方法。
您可以做一些事情,但没有一个可以保证用户没有这样做。
我总是需要在 Android 和 iOS 中实现这一点。
See this https://stackoverflow.com/questions/9822076/how-do-i-prevent-android-taking-a-screenshot-when-my-app-goes-to-the-background and this https://stackoverflow.com/questions/28606689/how-to-prevent-screen-capture-in-android对于安卓。
看this https://stackoverflow.com/questions/18680028/ios-app-prevent-screen-capture and this https://stackoverflow.com/questions/1586592/disabling-iphone-screenshot-feature for iOs
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)