# Window >![](../../public_sys-resources/icon-note.gif) **NOTE:** >The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import ``` import window from '@ohos.window'; ``` ## Required Permissions ohos.permission.SYSTEM\_FLOAT\_WINDOW ## SystemBarProperties Describes the properties of the status bar and navigation bar.
Color of the status bar. The color is a hexadecimal value, for example, #00FF00 or #FF00FF00. |
||||
Color of the navigation bar. The color is a hexadecimal value, for example, #00FF00 or #FF00FF00. |
||||
Primary window boundary information, which is in the format of a Rect instance. |
||
Secondary window boundary information, which is in the format of a Rect instance. |
AsyncCallback<Window> |
AsyncCallback<Window> |
AsyncCallback<Window> |
AsyncCallback<WindowMode> |
Screen split ratio. The default ratio is 1:1. The value 1 indicates the ratio 1:2, and the value 2 indicates the ratio 2:1. |
|||
AsyncCallback<SplitScreenBoundsInfo> |
Callback used to return a SplitScreenBoundsInfo object that contains the split-screen boundary information. |
Callback used to indicate whether the floating window is visible. |
Whether to display the divider. The value true means to display the divider, and false means the opposite. |
||
The application is displayed in the primary window in split-screen mode. |
||
The application is displayed in the secondary window in split-screen mode. |
||
Brightness to set, which ranges from 0 to 1. The value 1 indicates the brightest. |
|||
Background color to set. The color is a hexadecimal value, for example, #00FF00 or #FF00FF00. |
|||
Dimness of the window to set. The value ranges from 0 to 1. The value 1 indicates the dimmest. |
|||
Whether to display the status bar and navigation bar. For example, to display the status bar and navigation bar, set this parameter to ["status", "navigation"]. |
|||
AsyncCallback<WindowProperties> |
Type of the area. TYPE_SYSTEM indicates the default area of the system. TYPE_CUTOUT indicates the notch area. |
|||
AsyncCallback<AvoidArea> |
Callback used to indicate whether the subwindow is displayed. |
Whether the area outside the subwindow is touchable. The value true means that such an area is touchable, and false means the opposite. |
|||
Listening type. Set it to keyboardHeightChange, which indicates listening for keyboard height changes. |
|||
Listener type. Set it to keyboardHeightChange, which indicates a listener for keyboard height changes. |
|||