screen_capture_event_plus 1.4.0
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 (
onScreenshotandonScreenRecord) alongside listener callbacks. - Add
ScreenshotCallbackandScreenRecordCallbacktypedefs. - Add safe
try-catchexecution in listener callback loops. - Complete teardown on
dispose()and Android engine detachment. - Fix iOS notification selector parameter signature and replace deprecated
keyWindowwithUIWindowScenekey window lookup. - Add unit testing suite for
ScreenCaptureEvent. - Add original repository attribution link in
README.md.
1.3.0 #
- Add native
Activity.ScreenCaptureCallbacksupport 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
removeScreenShotListenerandremoveScreenRecordListenerto detach specific callbacks and prevent memory leaks. - Add cross-platform alias methods
preventScreenCapture(bool)andpreventScreenShot(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.nizwartocom.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_IMAGESon Android 13+ (TIRAMISU), falling back toREAD_EXTERNAL_STORAGEon 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 handlesSecurityException.- 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.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