diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index f457c8f197d74ea94217f66654364fec7ad4a826..f828dde20028c155e2aa43add90506144b3f0565 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9552,6 +9552,25 @@ declare namespace window { */ raiseAboveTarget(windowId: number): Promise; + /** + * 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. *