未验证 提交 7ec4ad30 编写于 作者: 邹伟 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-windowAnimationManager.md.

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