ios_insecure_screen_detector 0.0.1 copy "ios_insecure_screen_detector: ^0.0.1" to clipboard
ios_insecure_screen_detector: ^0.0.1 copied to clipboard

PlatformAndroidiOS
outdated

A flutter plugin to detect the screenshot and screen recording on iOS.

ios_insecure_screen_detector #

A flutter plugin to detect the screenshot and screen recording on iOS.

For screenshot, events can be detected on all iOS version. For screen recording, events can only be detected on iOS version above 11.0

Attention: this plugin work only for iOS, for androdi, please refer to flutter_windowmanager.

Getting Started #

/// Callbacks that contain the actions after event detected. ScreenshotCallback? _onScreenshotCallback; ScreenRecordCallback? _onScreenRecordCallback;

/// Create detector and initialize the observers on iOS system. IosInsecureScreenDetector() { initialize(); }

/// Initialize screenshot and screen record observers Future

/// Add callback actions when screenshot or screen record events received. void addListener(ScreenshotCallback screenshotCallback, ScreenRecordCallback screenRecordCallback) { _onScreenshotCallback = screenshotCallback; _onScreenRecordCallback = screenRecordCallback; }

/// Remove listeners void removeListener() { _onScreenshotCallback = null; _onScreenRecordCallback = null; }

/// Get the recording status of current screen Future

/// Remove notification observer Future

18
likes
150
points
3.27k
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter plugin to detect the screenshot and screen recording on iOS.

Homepage
Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on ios_insecure_screen_detector