Skip to content
pubscout

screen_capture_event

1.3.0, released 4 weeks ago by nizwar.dev

Catch screenshots and screen recordings on Android and iOS.

WASM-readyRock solid
$ flutter pub add screen_capture_event
Source repository

What it does

Detects when users take a screenshot or record the screen in your application using system callbacks and directory observation. It also allows developers to prevent Android screenshots and recordings.

AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to detect screenshots for security or analytics purposes.
  • You want to block screen capturing and recording on Android for sensitive screens.

Skip it when

  • You need detailed file paths for screenshots on iOS (which are not exposed by the platform).
  • You do not want to request broader storage or media permissions on older Android versions.

Strengths

  • Supports modern Android system callbacks on Android 14 and 15 without prompt.
  • Can prevent screenshots and recordings on Android.
  • Supports multiple concurrent listeners.

Weaknesses

  • Android screen recording detection on older versions relies on specific folder watchers and best-effort mechanisms.
  • iOS does not expose the screenshot file path or prevent screenshots natively through this package.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Requires adding permissions to AndroidManifest.xml for older Android versions or media paths if file paths are needed.

final ScreenCaptureEvent screenListener = ScreenCaptureEvent();

screenListener.addScreenShotListener((filePath) {
    print("Screenshot stored on : $filePath");
});
screenListener.watch();

Alternatives

Packages that do the same job and could replace screen_capture_event.