screenshot_callback
3.0.1, released 3 years ago by an unverified publisher
Detect mobile screenshots and execute callback functions on iOS and Android.
What it does
Allows Flutter applications to listen for mobile screenshot events on both iOS and Android platforms. When a screenshot is detected, a provided callback function is executed.
AI-written summary of version 3.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to trigger analytics or logs when users take screenshots.
- You want to warn users or take action within the app upon screenshot detection.
Skip it when
- You need complex image editing or screen recording features.
- Target platforms do not include Android or iOS.
Strengths
- Simple API to set up screenshot listeners.
- Supports both iOS and Android.
Weaknesses
- Requires manual permission handling on Android.
- Limited to detecting screenshots only.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires permission handling on Android to access external storage for screenshot detection.
ScreenshotCallback screenshotCallback = ScreenshotCallback();
screenshotCallback.addListener(() {
print('detect screenshot');
});
screenshotCallback.dispose();Alternatives
Packages that do the same job and could replace screenshot_callback.
- no_screenshot
Disable screenshots and screen recording, detect events, and show overlays in the app switcher.
87Compare - screen_capture_event
Catch screenshots and screen recordings on Android and iOS.
87Compare - shake_gesture
Detect shake gestures in Flutter apps on Android and iOS.
84Compare - web_browser_detect
Detect which browser and version is in use on Flutter Web.
79Compare