FLUTTER ECOSYSTEM

flutter-moum/flutter_screenshot_callback

iOS 및 Android에서 모바일 스크린샷을 감지하고 콜백 함수를 실행할 수 있는 Flutter 플러그인입니다. 🚀

flutter_screenshot_callback 프로젝트 이미지
Stars
110
Forks
173
최근 푸시(UTC)
2024. 6. 13.
프로젝트 상태
활성
Flutter Moum GitHub avatar
GITHUB Organization

Flutter Moum ↗

언어KotlinDartJavaRubySwiftObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

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