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

Merge branch 'dev' into alpha

...@@ -85,6 +85,14 @@ export const onUserCaptureScreen : OnUserCaptureScreen = function (callback : Us ...@@ -85,6 +85,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.
先完成此消息的编辑!
想要评论请 注册