提交 34014fdd 编写于 作者: 杜庆泉's avatar 杜庆泉

用户截屏插件 内存泄漏问题修复

上级 8aef6154
...@@ -84,6 +84,14 @@ export const onUserCaptureScreen : OnUserCaptureScreen = function (callback : Us ...@@ -84,6 +84,14 @@ export const onUserCaptureScreen : OnUserCaptureScreen = function (callback : Us
observer?.stopWatching(); observer?.stopWatching();
observer = new ScreenFileObserver(directory_screenshot); observer = new ScreenFileObserver(directory_screenshot);
observer?.startWatching(); observer?.startWatching();
UTSAndroid.onAppActivityDestroy(function(){
observer?.stopWatching()
observer = null
})
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册