As per requirement, In iOS flutter Application, Screen capture should not be allowed in App but App allows Screenshot even when I did not give permission to Allow Screenshot, I am using this plugin flutter_windowmanager 0.2.0. For iOS I have applied secure_application and keep_screen_on plugins, too but it did not work. Basically, what I want to do is that When Screenshot Permission is allowed then it should be captured otherewise not. So please share any solution regarding how to manage Screen Capture Enable and Disable Permission specifically in flutter iOS App.
Code snippet:
Disable screenshot
await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE);
Enable screenshot
await FlutterWindowManager.clearFlags(FlutterWindowManager.FLAG_SECURE);