screenshot_detector_callback 1.0.3
screenshot_detector_callback: ^1.0.3 copied to clipboard
Flutter plugin that allows you to detect mobile screenshot and execute callback functions on iOS and Android.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add screenshot_detector_callbackThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
screenshot_detector_callback: ^1.0.3Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:screenshot_detector_callback/plugin/pigeon.g.dart';
import 'package:screenshot_detector_callback/plugin/screenshot_callback_fix_plugin.dart';
import 'package:screenshot_detector_callback/screenshot_callback_fix.dart';