没效果呀,
/1、
onLoad() {
console.log("启用")
screenshotmanager.listenScreenShotWithCallback(function(res){
console.log('=========didscreenshot=============');
uni.showToast({
title:res.desc
})
console.log('=========res:'+JSON.stringify(res));
})
},
onUnload() {
console.log("onUnload")
screenshotmanager.unlistenScreenShot();
},
/2、头部也引用了
var screenshotmanager = uni.requireNativePlugin("HXR-ScreenShotManager");
/3、也在项目的创建了nativeplugins文件夹
/4、开启了调试模式还报错,我的天呀,这什么问题呀。
![9***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/1ddb5a317eb0c6e929cc0d128b063dd9.png)
9***@qq.com
- 发布:2021-04-22 17:01
- 更新:2021-04-22 17:01
- 阅读:488
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20210422/b1615ce41ab396c04e8b6dfbd55db70b.png)