!13964 支持从最小化状态恢复窗口

Merge pull request !13964 from 韦国宁/restore
This commit is contained in:
openharmony_ci 2024-09-29 09:09:47 +00:00 committed by Gitee
commit feefb3c736
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

14
api/@ohos.window.d.ts vendored
View File

@ -7516,6 +7516,20 @@ declare namespace window {
*/ */
recover(): Promise<void>; recover(): Promise<void>;
/**
* After the app main window is minimized, if the Ability is not in the background state, you can restore app main window.
*
* @returns { Promise<void> } - The promise returned by the function.
* @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.
* @syscap SystemCapability.Window.SessionManager
* @atomicservice
* @since 14
*/
restore(): Promise<void>;
/** /**
* Set the visibility of the window decor. * Set the visibility of the window decor.
* *