v1.0.1
screen_capture_utils
Um plugin para lidar com eventos de captura de tela em dispositivos Android e iOS
18Curtidas 11Downloads em 30 dias150Pontos Pub
AndroidiOS
Um plugin para lidar com eventos de captura de tela no Android e no iOS
{"sdk":"flutter"}{"sdk":"flutter"}Texto original em inglês. Visite o GitHub para a versão atual.
A plugin to handle screen capture events on android and ios
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();
/// Guard Screen
screenCaptureUtils.guard();
/// Unguard Screen
screenCaptureUtils.unGuard();
Lots of PR's would be needed to improve this plugin. So lots of suggestions and PRs are welcome.