From f73e6fa71791c963604a82f28ffff31a232af8e3 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Fri, 24 Mar 2023 20:36:03 +0800 Subject: [PATCH] =?UTF-8?q?uni-usercapturescreen=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-usercapturescreen/changelog.md | 6 ++++++ uni_modules/uni-usercapturescreen/package.json | 4 ++-- uni_modules/uni-usercapturescreen/readme.md | 6 ++++++ uni_modules/uni-usercapturescreen/utssdk/interface.uts | 3 +-- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/uni_modules/uni-usercapturescreen/changelog.md b/uni_modules/uni-usercapturescreen/changelog.md index 22c87fe..51378b5 100644 --- a/uni_modules/uni-usercapturescreen/changelog.md +++ b/uni_modules/uni-usercapturescreen/changelog.md @@ -1,3 +1,9 @@ +## 1.0.4(2023-03-24) +新增开启/关闭防截屏功能 +## 1.0.3(2023-03-17) +修复android平台 部分场景下js可能报错的问题 +## 1.0.2(2023-03-16) +修复Android平台在小米设备无法监听的问题 修复Android平台调用uni.onUserCaptureScreen必然会触发回调的问题 ## 1.0.1(2022-10-27) 修改插件描述 ## 1.0.0(2022-10-26) diff --git a/uni_modules/uni-usercapturescreen/package.json b/uni_modules/uni-usercapturescreen/package.json index 461dc0a..884c4ef 100644 --- a/uni_modules/uni-usercapturescreen/package.json +++ b/uni_modules/uni-usercapturescreen/package.json @@ -1,14 +1,14 @@ { "id": "uni-usercapturescreen", "displayName": "uni-usercapturescreen", - "version": "1.0.1", + "version": "1.0.4", "description": "用户主动截屏事件监听", "keywords": [ "截屏" ], "repository": "", "engines": { - "HBuilderX": "^3.6.0" + "HBuilderX": "^3.6.8" }, "dcloudext": { "type": "uts", diff --git a/uni_modules/uni-usercapturescreen/readme.md b/uni_modules/uni-usercapturescreen/readme.md index e5702ca..eda987a 100644 --- a/uni_modules/uni-usercapturescreen/readme.md +++ b/uni_modules/uni-usercapturescreen/readme.md @@ -13,3 +13,9 @@ 用户主动截屏事件。取消事件监听。 > 使用文档:[https://uniapp.dcloud.net.cn/api/system/capture-screen.html#offusercapturescreen](https://uniapp.dcloud.net.cn/api/system/capture-screen.html#offusercapturescreen) + +### uni.setUserCaptureScreen + +开启/关闭防截屏。 + +> 使用文档:[https://uniapp.dcloud.net.cn/api/system/capture-screen.html#setusercapturescreen](https://uniapp.dcloud.net.cn/api/system/capture-screen.html#setusercapturescreen) diff --git a/uni_modules/uni-usercapturescreen/utssdk/interface.uts b/uni_modules/uni-usercapturescreen/utssdk/interface.uts index 789d191..9cf97ed 100644 --- a/uni_modules/uni-usercapturescreen/utssdk/interface.uts +++ b/uni_modules/uni-usercapturescreen/utssdk/interface.uts @@ -47,7 +47,6 @@ export type SetUserCaptureScreenSuccess = { export type SetUserCaptureScreenFail = { /** * 错误码 - * 0:成功 * 12001:system not support * 12010:system internal error */ @@ -109,7 +108,7 @@ export type SetUserCaptureScreenOptions = { * @param {SetUserCaptureScreenOptions} options * @tutorial https://uniapp.dcloud.net.cn/api/system/capture-screen.html#setusercapturescreen * @platforms APP-IOS = ^9.0,APP-ANDROID = ^4.4 - * @since 3.7.3 + * @since 3.7.7 */ export type SetUserCaptureScreen = (options : SetUserCaptureScreenOptions) => void -- GitLab