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

!3100 Done! 3007:更新窗口context链接

Merge pull request !3100 from wusongqing/TR3007
...@@ -233,18 +233,18 @@ This API is discarded since API version 8. You are advised to use [window.create ...@@ -233,18 +233,18 @@ This API is discarded since API version 8. You are advised to use [window.create
create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback<Window>): void create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback<Window>): void
Creates a system window when the context is [ServiceExtensionContext](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-service-extension-context.md). This API uses an asynchronous callback to return the result. Creates a system window when the context is [ServiceExtensionContext](js-apis-service-extension-context.md). This API uses an asynchronous callback to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters - Parameters
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------- | | -------- | ----------------------------------------------- | ---- | ---------------------- |
| ctx | [Context](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-Context.md) | Yes | Current application context, which is the base class of **ServiceExtensionContext**.| | ctx | [Context](js-apis-service-extension-context.md) | Yes | Current application context. |
| id | string | Yes | Window ID. | | id | string | Yes | Window ID. |
| type | [WindowType](#windowtype) | Yes | Window type. | | type | [WindowType](#windowtype) | Yes | Window type. |
| callback | AsyncCallback<[Window](#window)> | Yes | Callback used to return the system window created. | | callback | AsyncCallback<[Window](#window)> | Yes | Callback used to return the system window created.|
- Example - Example
...@@ -265,15 +265,15 @@ Creates a system window when the context is [ServiceExtensionContext](https://gi ...@@ -265,15 +265,15 @@ Creates a system window when the context is [ServiceExtensionContext](https://gi
create(ctx: Context, id: string, type: WindowType): Promise<Window> create(ctx: Context, id: string, type: WindowType): Promise<Window>
Creates a system window when the context is [ServiceExtensionContext](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-service-extension-context.md). This API uses a promise to return the result. Creates a system window when the context is [ServiceExtensionContext](js-apis-service-extension-context.md). This API uses a promise to return the result.
**System capability**: SystemCapability.WindowManager.WindowManager.Core **System capability**: SystemCapability.WindowManager.WindowManager.Core
- Parameters - Parameters
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------------------------------------------------------------ | ---- | ----------------------------------------------------- | | ------ | ----------------------------------------------- | ---- | -------------------- |
| ctx | [Context](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-Context.md) | Yes | Current application context, which is the base class of **ServiceExtensionContext**.| | ctx | [Context](js-apis-service-extension-context.md) | Yes | Current application context.|
| id | string | Yes | Window ID. | | id | string | Yes | Window ID. |
| type | [WindowType](#windowtype) | Yes | Window type. | | type | [WindowType](#windowtype) | Yes | Window type. |
...@@ -424,9 +424,9 @@ Obtains the top window of the current application. This API uses an asynchronous ...@@ -424,9 +424,9 @@ Obtains the top window of the current application. This API uses an asynchronous
- Parameters - Parameters
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ------------------------------------------------------------ | ---- | -------------------------------------- | | -------- | -------------------------------------- | ---- | ------------------------------------------------------------ |
| ctx | [Context](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-Context.md) | Yes | Current application context. | | ctx | Context | Yes | Current application context. For the definition of **Context** of API version 8, see [Context](js-apis-Context.md). For the definition of **Context** of API version 9, see [Context](js-apis-ability-context.md).|
| callback | AsyncCallback<[Window](#window)> | Yes | Callback used to return the top window obtained.| | callback | AsyncCallback<[Window](#window)> | Yes | Callback used to return the top window obtained. |
- Example - Example
...@@ -453,8 +453,8 @@ Obtains the top window of the current application. This API uses a promise to re ...@@ -453,8 +453,8 @@ Obtains the top window of the current application. This API uses a promise to re
- Parameters - Parameters
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------------------------------------------------------------ | ---- | -------------------- | | ------ | ------- | ---- | ------------------------------------------------------------ |
| ctx | [Context](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-Context.md) | Yes | Current application context.| | ctx | Context | Yes | Current application context. For the definition of **Context** of API version 8, see [Context](js-apis-Context.md). For the definition of **Context** of API version 9, see [Context](js-apis-ability-context.md).|
- Return value - Return value
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册