Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-api
提交
8a8c876d
U
uni-api
项目概览
DCloud
/
uni-api
通知
671
Star
23
Fork
12
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-api
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
8a8c876d
编写于
10月 26, 2022
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: uni-usercapturescreen add readme
上级
1525f094
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
60 addition
and
34 deletion
+60
-34
uni_modules/uni-usercapturescreen/changelog.md
uni_modules/uni-usercapturescreen/changelog.md
+2
-0
uni_modules/uni-usercapturescreen/index.d.ts
uni_modules/uni-usercapturescreen/index.d.ts
+16
-0
uni_modules/uni-usercapturescreen/package.json
uni_modules/uni-usercapturescreen/package.json
+29
-29
uni_modules/uni-usercapturescreen/readme.md
uni_modules/uni-usercapturescreen/readme.md
+13
-5
未找到文件。
uni_modules/uni-usercapturescreen/changelog.md
浏览文件 @
8a8c876d
## 1.0.0(2022-10-26)
支持安卓、iOS、微信小程序平台
uni_modules/uni-usercapturescreen/index.d.ts
0 → 100644
浏览文件 @
8a8c876d
type
OnUserCaptureScreenCallback
=
(
res
?:
{
errMsg
:
string
})
=>
void
declare
class
Uni
{
/**
* 监听用户主动截屏事件,用户使用系统截屏按键截屏时触发此事件。
*
* 文档: [https://uniapp.dcloud.net.cn/api/system/capture-screen.html#onusercapturescreen](https://uniapp.dcloud.net.cn/api/system/capture-screen.html#onusercapturescreen)
*/
onUserCaptureScreen
(
callback
:
OnUserCaptureScreenCallback
):
void
;
/**
* 用户主动截屏事件。取消事件监听。
*
* 文档: [https://uniapp.dcloud.net.cn/api/system/capture-screen.html#offusercapturescreen](https://uniapp.dcloud.net.cn/api/system/capture-screen.html#offusercapturescreen)
*/
offUserCaptureScreen
(
callback
:
OnUserCaptureScreenCallback
):
void
;
}
uni_modules/uni-usercapturescreen/package.json
浏览文件 @
8a8c876d
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"description"
:
"uni-usercapturescreen"
,
"description"
:
"uni-usercapturescreen"
,
"keywords"
:
[
"keywords"
:
[
"截屏"
"截屏"
],
],
"repository"
:
""
,
"repository"
:
""
,
"engines"
:
{
"engines"
:
{
"HBuilderX"
:
"^3.6.0"
"HBuilderX"
:
"^3.6.0"
...
@@ -24,9 +24,9 @@
...
@@ -24,9 +24,9 @@
"qq"
:
""
"qq"
:
""
},
},
"declaration"
:
{
"declaration"
:
{
"ads"
:
""
,
"ads"
:
"
无
"
,
"data"
:
""
,
"data"
:
"
插件不采集任何数据
"
,
"permissions"
:
""
"permissions"
:
"
无
"
},
},
"npmurl"
:
""
"npmurl"
:
""
},
},
...
@@ -41,8 +41,8 @@
...
@@ -41,8 +41,8 @@
"encrypt"
:
[],
"encrypt"
:
[],
"platforms"
:
{
"platforms"
:
{
"cloud"
:
{
"cloud"
:
{
"tcb"
:
"
u
"
,
"tcb"
:
"
y
"
,
"aliyun"
:
"
u
"
"aliyun"
:
"
y
"
},
},
"client"
:
{
"client"
:
{
"Vue"
:
{
"Vue"
:
{
...
@@ -50,36 +50,36 @@
...
@@ -50,36 +50,36 @@
"vue3"
:
"y"
"vue3"
:
"y"
},
},
"App"
:
{
"App"
:
{
"app-android"
:
"
u
"
,
"app-android"
:
"
y
"
,
"app-ios"
:
"
u
"
"app-ios"
:
"
y
"
},
},
"H5-mobile"
:
{
"H5-mobile"
:
{
"Safari"
:
"
u
"
,
"Safari"
:
"
n
"
,
"Android Browser"
:
"
u
"
,
"Android Browser"
:
"
n
"
,
"微信浏览器(Android)"
:
"
u
"
,
"微信浏览器(Android)"
:
"
n
"
,
"QQ浏览器(Android)"
:
"
u
"
"QQ浏览器(Android)"
:
"
n
"
},
},
"H5-pc"
:
{
"H5-pc"
:
{
"Chrome"
:
"
u
"
,
"Chrome"
:
"
n
"
,
"IE"
:
"
u
"
,
"IE"
:
"
n
"
,
"Edge"
:
"
u
"
,
"Edge"
:
"
n
"
,
"Firefox"
:
"
u
"
,
"Firefox"
:
"
n
"
,
"Safari"
:
"
u
"
"Safari"
:
"
n
"
},
},
"小程序"
:
{
"小程序"
:
{
"微信"
:
"
u
"
,
"微信"
:
"
y
"
,
"阿里"
:
"
u
"
,
"阿里"
:
"
n
"
,
"百度"
:
"
u
"
,
"百度"
:
"
n
"
,
"字节跳动"
:
"
u
"
,
"字节跳动"
:
"
n
"
,
"QQ"
:
"
u
"
,
"QQ"
:
"
n
"
,
"钉钉"
:
"
u
"
,
"钉钉"
:
"
n
"
,
"快手"
:
"
u
"
,
"快手"
:
"
n
"
,
"飞书"
:
"
u
"
,
"飞书"
:
"
n
"
,
"京东"
:
"
u
"
"京东"
:
"
n
"
},
},
"快应用"
:
{
"快应用"
:
{
"华为"
:
"
u
"
,
"华为"
:
"
n
"
,
"联盟"
:
"
u
"
"联盟"
:
"
n
"
}
}
}
}
}
}
...
...
uni_modules/uni-usercapturescreen/readme.md
浏览文件 @
8a8c876d
# uts-screenshot-listener
# uni-usercapturescreen
### 开发文档
[
UTS 语法
](
https://uniapp.dcloud.net.cn/tutorial/syntax-uts.html
)
### uni.onUserCaptureScreen
[
UTS 原生插件
](
https://uniapp.dcloud.net.cn/plugin/uts-plugin.html
)
[
Hello UTS
](
https://gitcode.net/dcloud/hello-uts/-/tree/dev
)
监听用户主动截屏事件,用户使用系统截屏按键截屏时触发此事件。
\ No newline at end of file
> 使用文档:[https://uniapp.dcloud.net.cn/api/system/capture-screen.html#onusercapturescreen](https://uniapp.dcloud.net.cn/api/system/capture-screen.html#onusercapturescreen)
### uni.offUserCaptureScreen
用户主动截屏事件。取消事件监听。
> 使用文档:[https://uniapp.dcloud.net.cn/api/system/capture-screen.html#offusercapturescreen](https://uniapp.dcloud.net.cn/api/system/capture-screen.html#offusercapturescreen)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录