PrivacyScreenPlugin
PrivacyScreenPlugin copied to clipboard
[IOS][Android] add JS interface and options
for a better control, I think you should add
- option to enable the plugin
- option to disable
- event or some return value to detect that user makes a screenshot and prevented -> so we can give the user some feedback
- some kind of callback function (success, error) for enable and disable options.
Well, I agree that more options would be better, but at least on Android (where screenshots are blocked) the plugin is simply setting a system level flag. I am not sure there is any way the plugin could know if a user tried to take a screenshot. Android does at least let the user know that it was blocked.