diff --git a/en/application-dev/reference/apis/js-apis-window.md b/en/application-dev/reference/apis/js-apis-window.md index c3ec8f7fb3b13c935a4d3dc23f4f9cf8b96dfa12..2eac935227a16a2321e7f7be46cbb0f0c39747eb 100644 --- a/en/application-dev/reference/apis/js-apis-window.md +++ b/en/application-dev/reference/apis/js-apis-window.md @@ -160,12 +160,14 @@ Describes the color gamut mode. | DEFAULT | 0 | Default color gamut mode.| | WIDE_GAMUT | 1 | Wide color gamut mode. | -## window.create7 +## window.create7+ create(id: string, type: WindowType, callback: AsyncCallback<Window>): 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.create8+](#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.create7 +## window.create7+ create(id: string, type: WindowType): Promise<Window> 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.create8+](#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. ### hide7+