ios_insecure_screen_detector

Last updated:

0 purchases

ios_insecure_screen_detector Image
ios_insecure_screen_detector Images
Add to Cart

Description:

ios insecure screen detector

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 #
How to use #


In the screen, prepare two callbacks:
typedef ScreenshotCallback = void Function();
typedef ScreenRecordCallback = void Function(bool);
ScreenshotCallback will be used to get the screenshot event.
ScreenRecordCallback will be used to get the screen recording event, recording is on or off will be passed back.(Screen recording detector only worked above iOS 11.0)


Get IosInsecureScreenDetector instance.


Initialize plugin in initState()


Add your callbacks to IosInsecureScreenDetector.


Dispose plugin in dispose() when you exit the screen.


Also you can get the current screen recording status with isCaptured()


Apis #
/// Callbacks that contain the actions after event detected.
ScreenshotCallback? _onScreenshotCallback;
ScreenRecordCallback? _onScreenRecordCallback;
/// Initialize screenshot and screen record notification observers
Future
/// Add callback actions when screenshot or screen record events received.
void addListener(ScreenshotCallback screenshotCallback, ScreenRecordCallback screenRecordCallback)
/// Remove listeners
void removeListener()
/// Get the recording status of current screen
Future
/// Remove notification observer
Future

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.