• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 窗口管理子系统JS API变更
2
3OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,窗口管理子系统的API变更如下:
4
5## 接口变更
6
7| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
8|---|---|---|---|
9| ohos.window | WindowStage | loadContent(path: string, storage: ContentStorage, callback: AsyncCallback\<void>): void;<br>loadContent(path: string, storage?: ContentStorage): Promise\<void>;<br>loadContent(path: string, callback: AsyncCallback\<void>): void; | 新增 |
10| ohos.window | WindowStage | getSubWindow(): Promise\<Array\<Window>>;<br>getSubWindow(callback: AsyncCallback\<Array\<Window>>): void; | 新增 |
11| ohos.window | WindowStage | createSubWindow(name: string): Promise\<Window>;<br>createSubWindow(name: string, callback: AsyncCallback\<Window>): void; | 新增 |
12| ohos.window | WindowStage | getMainWindow(): Promise\<Window>;<br>getMainWindow(callback: AsyncCallback\<Window>): void; | 新增 |
13| ohos.window | WindowStageEventType | BACKGROUND | 新增 |
14| ohos.window | WindowStageEventType | INACTIVE | 新增 |
15| ohos.window | WindowStageEventType | ACTIVE | 新增 |
16| ohos.window | WindowStageEventType | FOREGROUND = 1 | 新增 |
17
18