screenshot_callback 3.0.1 copy "screenshot_callback: ^3.0.1" to clipboard
screenshot_callback: ^3.0.1 copied to clipboard

Flutter plugin that allows you to detect mobile screenshot and execute callback functions on iOS and Android.

Screenshot Callback

Flutter plugin that allows you to detect mobile screenshot and execute callback functions on iOS and Android. 🚀

UsageIssues and FeedbackAuthorLicense

Feedback welcome and Pull Requests are most welcome!

Usage #

Import the package #

To use this plugin, follow the plugin installation instructions.

Use the plugin #

Add the following import to your Dart code:

import 'package:screenshot_callback/screenshot_callback.dart';
copied to clipboard

Initialize ScreenshotCallback with the scopes you want:

ScreenshotCallback screenshotCallback = ScreenshotCallback();
copied to clipboard

addListener #

Then invoke addListener method of ScreenshotCallback. Add custom functions that you want to excute after detect screenshot. e.g:

screenshotCallback.addListener(() {
  //Void funtions are implemented
  print('detect screenshot');
});
copied to clipboard

dispose #

You need to call dispose method to terminate ScreenshotCallback before you exit the app e.g:

screenshotCallback.dispose();
copied to clipboard

Issues and Feedback #

Please file issues to send feedback or report a bug. Thank you !

Author #

License #

MIT

97
likes
160
points
6.75k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.14 - 2025.03.29

Flutter plugin that allows you to detect mobile screenshot and execute callback functions on iOS and Android.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on screenshot_callback