screenshot_detect 1.0.1 copy "screenshot_detect: ^1.0.1" to clipboard
screenshot_detect: ^1.0.1 copied to clipboard

outdated

iOS-only screenshot detection.

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_callback/screenshot_callback.dart';
    
  • Create an ScreenshotCallback instance

     final ScreenshotCallback screenshotCallback = ScreenshotCallback();
    
  • Add an observer

     screenshotCallback.addListener(() {
       		print('Taken screenshot')
          exampleFunction();
        });
    
  • Dispose when done

      @override
      void dispose() {
        screenshotCallback.dispose();
        super.dispose();
      }
    

Author #

4
likes
0
pub points
0%
popularity

Publisher

unverified uploader

iOS-only screenshot detection.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on screenshot_detect