FLUTTER ECOSYSTEM

flutter-moum/flutter_screenshot_callback

Plugin do Flutter que permite detectar capturas de tela no celular e executar funções de retorno em iOS e Android. 🚀

Capa do projeto flutter_screenshot_callback
Stars
110
Forks
173
Último push (UTC)
13 de jun. de 2024
Status do projeto
Ativo
Flutter Moum GitHub avatar
GITHUB Organization

Flutter Moum ↗

LinguagensKotlinDartJavaRubySwiftObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

Screenshot Callback

Flutter plugin that allows you to detect mobile screenshot and execute callback functions on iOS and Android. 🚀

https://img.shields.io/pub/v/screenshot_callback.svg https://img.shields.io/github/license/flutter-moum/flutter_screenshot_callback

UsageIssues and FeedbackAuthorLicense

Feedback welcome and Pull Requests are most welcome!

Usage

Import the package

To use this plugin, follow the plugin installation instructions.

Use the plugin

Add the following import to your Dart code:

import 'package:screenshot_callback/screenshot_callback.dart';

Initialize ScreenshotCallback with the scopes you want:

ScreenshotCallback screenshotCallback = ScreenshotCallback();
addListener

Then invoke addListener method of ScreenshotCallback. Add custom functions that you want to excute after detect screenshot. e.g:

screenshotCallback.addListener(() {
  //Void funtions are implemented
  print('detect screenshot');
});
dispose

You need to call dispose method to terminate ScreenshotCallback before you exit the app e.g:

screenshotCallback.dispose();

Issues and Feedback

Please file issues to send feedback or report a bug. Thank you !

Author

License

MIT