Answer the question
In order to leave comments, you need to log in
How to track screenshot event on ios in flutter app?
It is necessary to block the ability to take screenshots in the application. On ios, blocking screenshots is not possible, but it is possible to catch the event of taking screenshots and replace the screen itself (according to official information).
The question is, is there a real possibility without native code to catch this event and change the contents of the screenshot?
Answer the question
In order to leave comments, you need to log in
as an option to catch a screenshot, you can use this library https://pub.dev/packages/screenshot_callback
import 'package:screenshot_callback/screenshot_callback.dart';
ScreenshotCallback screenshotCallback = ScreenshotCallback();
screenshotCallback.addListener(() {
//Void funtions are implemented
print('detect screenshot');
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question