screenshot_callback
iOS 및 Android에서 모바일 스크린샷을 감지하고 콜백 함수를 실행할 수 있는 Flutter 플러그인입니다.
iOS 및 Android에서 모바일 스크린샷을 감지하고 콜백 함수를 실행할 수 있는 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
의존성 목록 2 개
{"sdk":"flutter"}{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗