apis for immersive mode enabled state.

Signed-off-by: yanghongnan <hongnanyang2014@yeah.net>
This commit is contained in:
yanghongnan 2024-04-29 23:11:29 +08:00
parent 7aa7321364
commit 1240104f5d

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

@ -5877,6 +5877,33 @@ declare namespace window {
* @since 12
*/
setWindowGrayScale(grayScale: number): Promise<void>;
/**
* Set whether to enable immersive mode.
*
* @param { boolean } enabled - The value true means to enable immersive mode, and false means the opposite.
* @throws { BusinessError } 401 - Parameter error.
* @throws { BusinessError } 1300002 - This window state is abnormal.
* @throws { BusinessError } 1300003 - This window manager service works abnormally.
* @throws { BusinessError } 1300004 - Unauthorized operation.
* @syscap SystemCapability.WindowManager.WindowManager.Core
* @atomicservice
* @since 12
*/
setImmersiveModeEnabledState(enabled: boolean): void;
/**
* Get whether the immersive mode is enabled or not.
*
* @returns { boolean } - The value true means the immersive mode is enabled, and false means the opposite.
* @throws { BusinessError } 1300002 - This window state is abnormal.
* @throws { BusinessError } 1300003 - This window manager service works abnormally.
* @throws { BusinessError } 1300004 - Unauthorized operation.
* @syscap SystemCapability.WindowManager.WindowManager.Core
* @atomicservice
* @since 12
*/
getImmersiveModeEnabledState(): boolean;
}
/**