mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
commit
273dfa0a0b
23
api/@ohos.window.d.ts
vendored
23
api/@ohos.window.d.ts
vendored
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user