当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
5 Star 0 Fork 5

OpenHarmony-SIG/fluttertpc_screenshot_callback
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

🚨 重要提示 | IMPORTANT

⚠️ 此代码仓已归档。新地址请访问 fluttertpc_screenshot_callback。| ⚠️ This repository has been archived. For the new address, please visit fluttertpc_screenshot_callback.


screenshot_callback

A new Flutter plugin.

Getting Started

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.

Android需要获取存储权限才能正常使用

需要真机才能验证截图

更新flutter2,支持Null safety

Flutter中使用注意

如果在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

BSD 3-Clause License Copyright (c) 2020, 1169886116 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

暂无描述 展开 收起
README
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-sig/fluttertpc_screenshot_callback.git
git@gitee.com:openharmony-sig/fluttertpc_screenshot_callback.git
openharmony-sig
fluttertpc_screenshot_callback
fluttertpc_screenshot_callback
master

搜索帮助