# flutter_screenshot_callback **Repository Path**: jay-xiang/flutter_screenshot_callback ## Basic Information - **Project Name**: flutter_screenshot_callback - **Description**: flutter_screenshot_callback - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-07-31 - **Last Updated**: 2026-01-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

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](https://github.com/flutter-moum/flutter_screenshot_callback/issues/new) and [Pull Requests](https://github.com/flutter-moum/flutter_screenshot_callback/pulls) are most welcome! ## Usage ### Import the package To use this plugin, follow the [**plugin installation instructions**](https://pub.dev/packages/screenshot_callback#-installing-tab-). ### Use the plugin Add the following import to your Dart code: ```dart import 'package:screenshot_callback/screenshot_callback.dart'; ``` Initialize ScreenshotCallback with the scopes you want: ```dart ScreenshotCallback screenshotCallback = ScreenshotCallback(); ``` ### addListener Then invoke addListener method of ScreenshotCallback. Add custom functions that you want to excute after detect screenshot. e.g: ```dart 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: ```dart screenshotCallback.dispose(); ``` ## Issues and Feedback Please [**file**](https://github.com/flutter-moum/flutter_screenshot_callback/issues/new) issues to send feedback or report a bug. Thank you ! ## Author - [Gwangyu-Kim](https://github.com/kwanguuuu) • - [minsub0922](https://github.com/minsub0922) • - [beygee](https://github.com/beygee) • - [Flutter Moum](https://github.com/flutter-moum) • ## License MIT