screen_capture_utils

Last updated:

0 purchases

screen_capture_utils Image
screen_capture_utils Images
Add to Cart

Description:

screen capture utils

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();
copied to clipboard
️🔐 Screen Guarding (Android Only) #
Guard
/// Guard Screen
screenCaptureUtils.guard();
copied to clipboard

This function will apply the FLAG_SECURE to the MainActivity of your app.

UnGuard
/// Unguard Screen
screenCaptureUtils.unGuard();
copied to clipboard

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.

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.