FLUTTER ECOSYSTEM

Zfinix/screen_capture_utils

Ein Plugin zur Verarbeitung von Bildschirmfängereignissen unter Android und iOS

Projektcover von screen_capture_utils
Stars
39
Forks
3
Letzter Push (UTC)
11.04.2022
Projektstatus
Aktiv
Chiziaruhoma Ogbonda GitHub avatar
GITHUB User

Chiziaruhoma Ogbonda ↗

Systems & Harness Engineer

SprachenKotlinDartSwiftRubyObjective-C

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 2 Einträge
  • flutter{"sdk":"flutter"}
  • flutter_testEntwicklung{"sdk":"flutter"}

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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.