Skip to content
pubscout

ios_insecure_screen_detector

0.0.2, released 5 years ago by an unverified publisher

Detect screenshots and screen recording on iOS devices.

WASM-ready
$ flutter pub add ios_insecure_screen_detector
Source repository

What it does

A Flutter plugin that allows developers to detect when a user takes a screenshot or starts/stops screen recording on iOS. It provides callback mechanisms and status checks to handle insecure screen events.

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

Use it when

  • You need to detect screenshots taken by users on iOS.
  • You need to monitor screen recording status changes on iOS devices.
  • You want to secure sensitive content by reacting to screen capture events.

Skip it when

  • You need screenshot or screen protection for Android (requires other packages like flutter_windowmanager).
  • You only need cross-platform device information without capture detection.

Strengths

  • Detects both screenshots and screen recordings on iOS.
  • Provides methods to check current screen recording status (`isCaptured`).
  • Simple API with initialize, listener, and dispose methods.

Weaknesses

  • Works only for iOS (Android is not supported by this package).
  • Screen recording detection only works on iOS versions above 11.0.

Setup

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

Initialize the plugin in initState and dispose of it when exiting the screen.

final detector = IosInsecureScreenDetector();
await detector.initialize();
detector.addListener(
  () => print('Screenshot taken'),
  (isRecording) => print('Screen recording: $isRecording'),
);

Alternatives

Packages that do the same job and could replace ios_insecure_screen_detector.