mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-04-12 10:13:17 +00:00
!18273 getvisibleWIndowInfo修改为public API
Merge pull request !18273 from zzz/visible_public
This commit is contained in:
commit
df64cf288f
11
api/@ohos.window.d.ts
vendored
11
api/@ohos.window.d.ts
vendored
@ -3072,6 +3072,17 @@ declare namespace window {
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 12
|
||||
*/
|
||||
/**
|
||||
* Get info of visible windows.
|
||||
*
|
||||
* @permission ohos.permission.VISIBLE_WINDOW_INFO
|
||||
* @returns { Promise<Array<WindowInfo>> } - Promise that returns windowInfo list.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 801 - Capability not supported. Function getVisibleWindowInfo can not work correctly due to limited device capabilities.
|
||||
* @throws { BusinessError } 1300003 - This window manager service works abnormally.
|
||||
* @syscap SystemCapability.Window.SessionManager
|
||||
* @since 18
|
||||
*/
|
||||
function getVisibleWindowInfo(): Promise<Array<WindowInfo>>;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user