v3.0.1
screenshot_callback
可在 iOS 與 Android 上偵測行動裝置截圖並執行回呼函數的 Flutter 插件。
101喜歡 5300近 30 天下載150Pub 分數
AndroidiOS
一個 Flutter 插件,可在 iOS 和 Android 上檢測行動裝置截圖並執行回呼函數。🚀
{"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