mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-08 07:36:38 +00:00
commit
c51b99b5ad
17
api/@ohos.window.d.ts
vendored
17
api/@ohos.window.d.ts
vendored
@ -4264,6 +4264,23 @@ declare namespace window {
|
||||
*/
|
||||
setBrightness(brightness: number, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Set whether the main window is topmost.
|
||||
*
|
||||
* @param { boolean } isTopmost - Main window is topmost if true.
|
||||
* @returns { Promise<void> } Promise that returns no value.
|
||||
* @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @throws { BusinessError } 801 - Capability not supported on this device.
|
||||
* @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
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
setTopmost(isTopmost: boolean): Promise<void>;
|
||||
|
||||
/**
|
||||
* Sets the brightness of window.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user