From d68c4e136e0712cd86e8825bf179e267f73c4a83 Mon Sep 17 00:00:00 2001 From: 18 Date: Mon, 16 Jun 2025 14:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=B8=BB=E7=AA=97=E5=B1=82?= =?UTF-8?q?=E7=BA=A7=E8=B0=83=E6=95=B4=E5=8A=9F=E8=83=BD=20Signed-off-by:?= =?UTF-8?q?=2018=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.window.d.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 5039d69de7..debc87413c 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9312,6 +9312,40 @@ declare namespace window { */ raiseAboveTarget(windowId: number): Promise; + /** + * Raise main window above another. + * + * @param { number } windowId - Indicates target window id. + * @param { AsyncCallback } callback - The callback of raiseMainWindowAboveTarget. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @throws { BusinessError } 1300004 - Unauthorized operation. + * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid parameter range. 2. Invalid parameter length. + * @syscap SystemCapability.Window.SessionManager + * @systemapi Hide this for inner system use. + * @since 20 + */ + raiseMainWindowAboveTarget(windowId: number, callback: AsyncCallback): void; + + /** + * Raise main window above another. + * + * @param { number } windowId - Indicates target window id. + * @returns { Promise } - The promise returned by the function. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @throws { BusinessError } 1300004 - Unauthorized operation. + * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid parameter range. 2. Invalid parameter length. + * @syscap SystemCapability.Window.SessionManager + * @systemapi Hide this for inner system use. + * @since 20 + */ + raiseMainWindowAboveTarget(windowId: number): Promise; + /** * Set whether to enable an app sub window to raise itself by click. * -- Gitee