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

A plugin to handle screen capture events on android and ios devices

Screen Capture Utils #

A plugin to handle screen capture events on android and ios

🚀 Initialize SDK #

  late ScreenCaptureUtils screenCaptureUtils;
  
  ...   
    
  screenCaptureUtils = ScreenCaptureUtils(
      // Path returns empty on iOS
      onScreenCaptured: (_) {
          print('Captured: $_');
      },
    
      /// Only on Android !!!
      isGuarding: (bool val) {
        print(val);
      },
    
      /// Only on Android !!!
      onScreenCapturedWithDeniedPermission: () {
        print('onScreenCapturedWithDeniedPermission');
      },
  )..intialize();

️🔐 Screen Guarding (Android Only) #

Guard

   /// Guard Screen
  screenCaptureUtils.guard();
  • This function will apply the FLAG_SECURE to the MainActivity of your app.

UnGuard

   /// Unguard Screen
  screenCaptureUtils.unGuard();
  • This function will remove/clear the FLAG_SECURE from the MainActivity of your app.

✨ Contribution #

Lots of PR's would be needed to improve this plugin. So lots of suggestions and PRs are welcome.

18
likes
150
points
19
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A plugin to handle screen capture events on android and ios devices

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on screen_capture_utils

Packages that implement screen_capture_utils