!8232 提供底部导航条显示隐藏接口

Merge pull request !8232 from 哆啦的竹蜻蜓/master
This commit is contained in:
openharmony_ci 2023-12-11 08:57:43 +00:00 committed by Gitee
commit 273dfa0a0b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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

@ -1883,6 +1883,15 @@ declare namespace window {
*/
WINDOW_HIDDEN = 4
}
/**
* Specific system bar type.
*
* @syscap SystemCapability.Window.SessionManager
* @since 11
*/
type SpecificSystemBar = 'status' | 'navigation' | 'navigationIndicator';
interface Window {
/**
* Hide window.
@ -2519,6 +2528,20 @@ declare namespace window {
*/
setWindowSystemBarEnable(names: Array<'status' | 'navigation'>): Promise<void>;
/**
* Set specific system bar to have visible.
*
* @param {SpecificSystemBar} name - the set of system bar
* @param {boolean} enable - Show specific system bar if true, or hide specific system bar if false.
* @returns { Promise<void> } Promise that returns no value.
* @throws {BusinessError} 401 - Parameter error.
* @throws {BusinessError} 1300002 - This window state is abnormal.
* @throws {BusinessError} 1300003 - This window manager service works abnormally.
* @syscap SystemCapability.Window.SessionManager
* @since 11
*/
setSpecificSystemBarEnabled(name: SpecificSystemBar, enable: boolean): Promise<void>;
/**
* Set the properties of system bar
*