screenshot_shield 0.1.2 copy "screenshot_shield: ^0.1.2" to clipboard
screenshot_shield: ^0.1.2 copied to clipboard

Detect user screenshots and optionally prevent screen capture on Android and iOS.

0.1.2 #

  • Add Windows and Linux platform support. The Dart widgets work on desktop, but screenshot detection and prevention are unavailable there (no OS APIs). On Windows, setProtection(backgroundBlur: true) cloaks the window from alt-tab and the taskbar preview while it is inactive or minimized.
  • iOS: preventCapture now blanks the app-switcher preview via a hidden secure text field. User screenshots themselves cannot be blanked on iOS, but detection and the shareable-image capture still work.
  • iOS: the background blur is applied on willResignActive so it reliably appears in the app switcher.
  • Android: the background blur now triggers on the user-leave hint (before onPause) and forces a frame commit so the recents thumbnail includes it.
  • Add a GitHub Actions workflow that publishes to pub.dev with configurable major/minor/patch version bumps.

0.1.1 #

  • Fix iOS builds: correct the Swift Package library product name to screenshot-shield.
  • Background blur on Android now only applies the RenderEffect blur when the FlutterView uses RenderMode.texture (where it actually reaches Flutter content); otherwise a dim overlay is shown. Use RenderMode.texture in MainActivity for a real blur.
  • Make the iOS background blur appear reliably in the app switcher by committing it immediately when the app enters the background.
  • ScreenshotShieldRouteGuard now applies preventCapture / detectScreenshots changes immediately instead of only on route changes.
  • Add an example app demonstrating detection, captured-image callbacks, and background blur.

0.1.0 #

  • Detect user screenshots on Android and iOS.
  • Android 14+ uses the system DETECT_SCREEN_CAPTURE API; older Android versions watch the media store for new screenshots.
  • iOS reports immediately via the UIApplicationUserDidTakeScreenshotNotification system notification.
  • ScreenshotShieldScope provides a shared ScreenshotShield to the widget tree.
  • ScreenshotShieldRouteGuard scopes protection to a route: capture prevention and screenshot listening are enabled while the route is in view and released when another route covers it.
  • Optional re-rasterized PNG of the guarded screen passed to onScreenshotDetected.
  • Optional native background blur that hides the app content in the app switcher (setProtection(backgroundBlur: true)).
  • Prevent screen capture on Android via the secure window flag (setProtection(preventCapture: true)).
2
likes
0
points
655
downloads

Publisher

unverified uploader

Weekly Downloads

Detect user screenshots and optionally prevent screen capture on Android and iOS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, meta, plugin_platform_interface

More

Packages that depend on screenshot_shield

Packages that implement screenshot_shield