简体   繁体   English

我们可以在 android 中使用 chrome 自定义选项卡的安全标志来限制屏幕截图吗?

[英]Can we restrict screen capture using secure flag for chrome custom tab in android?

I am using chrome custom tab to display data in one screen.我正在使用 chrome 自定义选项卡在一个屏幕中显示数据。 But data is sensitive and need to protect it by disabling screen capture functionality of devices.但是数据很敏感,需要通过禁用设备的屏幕捕获功能来保护它。 It would be great help if any one could explain me how can I achieve this requirement for custom chrome tabs.如果有人可以向我解释如何实现自定义 chrome 标签的这一要求,那将是非常有帮助的。 Thanks in advance.提前致谢。

It's not currently possible.目前是不可能的。 The reason is that the Custom Tab runs in the browser process, not the host app process.原因是自定义选项卡在浏览器进程中运行,而不是宿主应用程序进程。

Screenshots are disabled by default, but only when launching the tab in incognito mode .默认情况下禁用屏幕截图,但仅在以隐身模式启动选项卡时。
Chrome must have been built with allow_incognito_custom_tabs_from_third_party . Chrome 必须使用allow_incognito_custom_tabs_from_third_party

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM