v3.0.1
screenshot_callback
iOS 및 Android에서 모바일 스크린샷을 감지하고 콜백 함수를 실행할 수 있는 Flutter 플러그인입니다.
101좋아요 5.3천30일 다운로드150Pub 점수
AndroidiOS
iOS 및 Android에서 모바일 스크린샷을 감지하고 콜백 함수를 실행할 수 있는 Flutter 플러그인입니다. 🚀
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Usage • Issues and Feedback • Author • License
Feedback welcome and Pull Requests are most welcome!
To use this plugin, follow the plugin installation instructions.
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();
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');
});
You need to call dispose method to terminate ScreenshotCallback before you exit the app e.g:
screenshotCallback.dispose();
Please file issues to send feedback or report a bug. Thank you !
MIT