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

!2777 Done! 2606:接口一致性问题及内源演练问题修改

Merge pull request !2777 from wusongqing/TR2606
......@@ -160,12 +160,14 @@ Describes the color gamut mode.
| DEFAULT | 0 | Default color gamut mode.|
| WIDE_GAMUT | 1 | Wide color gamut mode. |
## window.create<sup>7</sup><a name="window-create"></a>
## window.create<sup>7+</sup>
create(id: string, type: WindowType, callback: AsyncCallback&lt;Window&gt;): void
Creates a subwindow. This API uses an asynchronous callback to return the result.
This API is discarded since API version 8. You are advised to use [window.create<sup>8+</sup>](#windowcreate8) instead.
**System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters
......@@ -191,12 +193,14 @@ Creates a subwindow. This API uses an asynchronous callback to return the result
});
```
## window.create<sup>7</sup>
## window.create<sup>7+</sup>
create(id: string, type: WindowType): Promise&lt;Window&gt;
Creates a subwindow. This API uses a promise to return the result.
This API is discarded since API version 8. You are advised to use [window.create<sup>8+</sup>](#windowcreate8) instead.
**System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters
......@@ -523,7 +527,7 @@ This is a system API and cannot be called by third-party applications.
## Window
In the following API examples, you must use [getTopWindow()](#window-gettopwindow), [create()](#window-create), or [find()](#window-find) to obtain a **Window** instance and then call a method in this instance.
In the following API examples, you must use [getTopWindow()](#window-gettopwindow), [create()](#windowcreate7), or [find()](#window-find) to obtain a **Window** instance and then call a method in this instance.
### hide<sup>7+</sup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册