增加 可选特性continuation
增加 协程示例
This commit is contained in:
@@ -65,7 +65,7 @@ module.exports = function (runtime, scope) {
|
||||
if(landscape === false){
|
||||
orientation = ScreenCapturer.ORIENTATION_PORTRAIT;
|
||||
}
|
||||
return ResultAdapter.promise(javaImages.requestScreenCapture(orientation)).await();
|
||||
return ResultAdapter.wait(javaImages.requestScreenCapture(orientation));
|
||||
}
|
||||
|
||||
images.save = function (img, path, format, quality) {
|
||||
|
||||
Reference in New Issue
Block a user