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

!24013 ts告警处理

Merge pull request !24013 from yanghf/master
......@@ -9,7 +9,7 @@
## 导入模块
```js
```ts
import windowAnimationManager from '@ohos.animation.windowAnimationManager'
```
......@@ -31,8 +31,8 @@ setController(controller: WindowAnimationController): void
**示例:**
```js
let controller = {
```ts
let controller: WindowAnimationController = {
onStartAppFromLauncher(startingWindowTarget: windowAnimationManager.WindowAnimationTarget, finishCallback: windowAnimationManager.WindowAnimationFinishedCallback): void {
console.log('onStartAppFromLauncher, the startingWindowTarget is: ' + startingWindowTarget);
finishCallback.onAnimationFinish();
......@@ -68,7 +68,7 @@ let controller = {
}
}
windowAnimationManager.setController(controller)
windowAnimationManager.setController(controller);
```
## windowAnimationManager.minimizeWindowWithAnimation
......@@ -88,9 +88,9 @@ minimizeWindowWithAnimation(windowTarget: WindowAnimationTarget, callback: Async
**示例:**
```js
```ts
let target: WindowAnimationTarget = undefined;
let controller = {
let controller: WindowAnimationController = {
onStartAppFromLauncher(startingWindowTarget: windowAnimationManager.WindowAnimationTarget, finishCallback: windowAnimationManager.WindowAnimationFinishedCallback): void {
console.log('onStartAppFromLauncher, the startingWindowTarget is: ' + startingWindowTarget);
target = startingWindowTarget;
......@@ -133,7 +133,7 @@ let controller = {
}
}
windowAnimationManager.setController(controller)
windowAnimationManager.setController(controller);
let finishedCallback: windowAnimationManager.WindowAnimationFinishedCallback = undefined;
windowAnimationManager.minimizeWindowWithAnimation(target, (err, data) => {
......@@ -171,9 +171,9 @@ minimizeWindowWithAnimation(windowTarget: WindowAnimationTarget): Promise<Win
**示例:**
```js
```ts
let target: WindowAnimationTarget = undefined;
let controller = {
let controller: WindowAnimationController = {
onStartAppFromLauncher(startingWindowTarget: windowAnimationManager.WindowAnimationTarget, finishCallback: windowAnimationManager.WindowAnimationFinishedCallback): void {
console.log('onStartAppFromLauncher, the startingWindowTarget is: ' + startingWindowTarget);
finishCallback.onAnimationFinish();
......@@ -209,7 +209,7 @@ let controller = {
}
}
windowAnimationManager.setController(controller)
windowAnimationManager.setController(controller);
let promise = windowAnimationManager.minimizeWindowWithAnimation(target);
promise.then((data) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册