Skip to content

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

License

Notifications You must be signed in to change notification settings

victoreronmosele/flutter_screenshot_callback

This branch is 1 commit ahead of flutter-moum/flutter_screenshot_callback:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6ae4d69 Β· Jan 13, 2025
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jun 7, 2022
Jul 11, 2023
Oct 4, 2019
Sep 24, 2019
Jun 7, 2022
Jul 11, 2023
Oct 13, 2019
Jan 13, 2025
Apr 2, 2020
Oct 1, 2019
Jul 11, 2023
Jul 11, 2023
Oct 1, 2019

Repository files navigation

Screenshot Callback

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

Usage β€’ Issues and Feedback β€’ Author β€’ License

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';

Initialize ScreenshotCallback with the scopes you want:

ScreenshotCallback screenshotCallback = ScreenshotCallback();

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');
});

dispose

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

screenshotCallback.dispose();

Issues and Feedback

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

Author

License

MIT

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 23.4%
  • Dart 20.8%
  • Java 19.2%
  • Ruby 19.1%
  • Swift 14.8%
  • Objective-C 2.7%