screenshot_observer

Handle screenshot event.

Refer to

getting started

First, add the screenshot_observer package to your pubspec dependencies

Initialize observer

ScreenshotObserver.initialize();

Add screenshot event listener

ScreenshotObserver.addListener(() {
   // TODO. handler
});

Dispose resource

ScreenshotObserver.dispose();

TODO

  • Test IOS device

Libraries

screenshot_observer