diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 5039d69de70ffeca91aa0f3239f45121b7df5c5c..debc87413c8a71199464038cea7936d1540df151 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. *