未验证 提交 a014833e 编写于 作者: O openharmony_ci 提交者: Gitee

!11496 修改WindowAnimationManager的minimizeWindowWithAnimation描述

Merge pull request !11496 from 邹伟/cherry-pick-1668586804
...@@ -136,15 +136,15 @@ windowAnimationManager.setController(controller) ...@@ -136,15 +136,15 @@ windowAnimationManager.setController(controller)
let finishedCallback: windowAnimationManager.WindowAnimationFinishedCallback = undefined; let finishedCallback: windowAnimationManager.WindowAnimationFinishedCallback = undefined;
windowAnimationManager.minimizeWindowWithAnimation(target, (err, data) => { windowAnimationManager.minimizeWindowWithAnimation(target, (err, data) => {
if (err.code) { if (err) {
console.error('Failed to minimize the window target. Cause: ' + JSON.stringify(err)); console.error('Failed to minimize the window target. Cause: ' + JSON.stringify(err));
return; return;
} }
finishedCallback = data; finishedCallback = data;
});
finishedCallback.onAnimationFinish(); // 在收到回调后,需要开始进行窗口动画,在窗口动画结束后,调用onAnimationFinish回调
finishedCallback.onAnimationFinish();
});
``` ```
## windowAnimationManager.minimizeWindowWithAnimation ## windowAnimationManager.minimizeWindowWithAnimation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册