screenshot_detect

Creator: coderz1093

Last updated:

0 purchases

screenshot_detect Image
screenshot_detect Images
Add to Cart

Description:

screenshot detect

screenshot_detect #
This is an iOS-only plugin for detecting when user takes a screenshot through UIApplication.userDidTakeScreenshotNotification. It was heavily inspired by this package.
Getting Started #


Import the package
import 'package:screenshot_detect/screenshot_detect.dart';
copied to clipboard


Create a ScreenshotDetect instance
final ScreenshotDetect screenshotDetect = ScreenshotDetect();
copied to clipboard


Add an observer
screenshotDetect.addListener(() {
print('Taken screenshot')
exampleFunction();
});
copied to clipboard


Dispose when done
@override
void dispose() {
screenshotDetect.dispose();
super.dispose();
}
copied to clipboard


Author #

glebosotov - gleb.osotov@gmail.com

License

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

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator