9***@qq.com
9***@qq.com
  • 发布:2021-04-22 17:01
  • 更新:2021-04-22 17:01
  • 阅读:399

#插件讨论# 【 截屏监听工具,禁用和开启截屏功能 - huhansome 】无法使用,一系列问题

分类:uni-app

没效果呀,
/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、开启了调试模式还报错,我的天呀,这什么问题呀。

2021-04-22 17:01 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复