⚠️ 此代码仓已归档。新地址请访问 fluttertpc_screenshot_callback。| ⚠️ This repository has been archived. For the new address, please visit fluttertpc_screenshot_callback.
A new Flutter plugin.
This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
如果在flutter中重写 didChangeAppLifecycleState,其中在三星手机上,侧面截图功能会执行 resumed生命周期。
case AppLifecycleState.resumed: // 应用程序可见,前台
_screenshotCallback.startScreenshot();
break;
case AppLifecycleState.paused: // 应用程序不可见,后台
_screenshotCallback.stopScreenshot();
break;
有一个警告没关系 flutter packages pub publish --dry-run --server=https://pub.dartlang.org -v flutter packages pub publish --server=https://pub.dartlang.org
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。