screen_capture_event_plus 1.4.0 copy "screen_capture_event_plus: ^1.4.0" to clipboard
screen_capture_event_plus: ^1.4.0 copied to clipboard

Catch screen capture (Screenshot & Screen Record) event for Android and iOS

1.4.0 #

  • Migrate Android native plugin implementation (ScreenCaptureEventPlugin) from Java to Kotlin.
  • Add reactive Stream API (onScreenshot and onScreenRecord) alongside listener callbacks.
  • Add ScreenshotCallback and ScreenRecordCallback typedefs.
  • Add safe try-catch execution in listener callback loops.
  • Complete teardown on dispose() and Android engine detachment.
  • Fix iOS notification selector parameter signature and replace deprecated keyWindow with UIWindowScene key window lookup.
  • Add unit testing suite for ScreenCaptureEvent.
  • Add original repository attribution link in README.md.

1.3.0 #

  • Add native Activity.ScreenCaptureCallback support for Android 14+ (API 34) for accurate screenshot detection without storage permission.
  • Add dynamic blur overlay screen protection on iOS when screen recording is detected and protection is enabled.
  • Add removeScreenShotListener and removeScreenRecordListener to detach specific callbacks and prevent memory leaks.
  • Add cross-platform alias methods preventScreenCapture(bool) and preventScreenShot(bool).
  • Add event debouncing (1.5s threshold) on Android 14+ and iOS native handlers to prevent duplicate callback firings per capture action.
  • Update granular permission checks for Android 13+ (READ_MEDIA_IMAGES).
  • Update example app with proper listener disposal and cross-platform screen protection.

1.2.2 #

  • Reorganize iOS native files to add Swift Package Manager (SPM) support.
  • Set iOS minimum deployment target to 13.0 to prevent Xcode from embedding Swift standard libraries, resolving the app size doubling issue.
  • Rename package/namespace from id.nizwar to com.rizkyghofur.
  • Fix repeated screenshot event loop (infinite callbacks) on Huawei devices via time-based event deduplication.
  • Fix screen recording status flickering (alternating true/false values during active recording) by properly resetting timeouts.
  • Merge PR #37:
    • Fix Android 16 main-thread deadlock/ANR: all filesystem scanning and FileObserver setup now run on a background ExecutorService instead of the main thread.
    • Request READ_MEDIA_IMAGES on Android 13+ (TIRAMISU), falling back to READ_EXTERNAL_STORAGE on older versions.
    • Every MethodChannel call now returns a result so Dart futures never hang.
    • getLastModified() guards directory access, filters to readable files, caps the scan at 200 files with a partial mtime sort, and handles SecurityException.
    • Bump SDK constraint to Dart 3 (>=3.0.0 <4.0.0).

1.1.1 #

  • Fix Exception when addScreenShotListener (Android) Thanks to @juarezfranco

1.1.0 #

  • Use pemission handler without 3rd party plugin
  • Fix more bugs

1.0.3 #

  • Merge #7 fixes

1.0.2 #

  • Update deps

1.0.1 #

  • Update deps

1.0.0+1 #

  • Update license

1.0.0 #

First release

  • Catch Android & iOS Screen Record Listener
  • Catch Android & iOS Screenshot Listener
  • Prevent Screenshot for Android
  • Check if recording on Android & iOS
0
likes
160
points
65
downloads

Documentation

API reference

Publisher

verified publisherrizkyghofur.my.id

Weekly Downloads

Catch screen capture (Screenshot & Screen Record) event for Android and iOS

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on screen_capture_event_plus

Packages that implement screen_capture_event_plus