diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-window.md b/en/release-notes/api-change/v3.2-beta1/js-apidiff-window.md index 17e4312d9955fbcd21278a9788bc90d6da3d62dd..871dfe4665c7d5f277071e6c871e1310fd516463 100644 --- a/en/release-notes/api-change/v3.2-beta1/js-apidiff-window.md +++ b/en/release-notes/api-change/v3.2-beta1/js-apidiff-window.md @@ -4,6 +4,8 @@ The table below lists the APIs changes of the window manager subsystem in OpenHa ## API Changes + + | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| | ohos.screen | ScreenModeInfo | refreshRate: number; | Added| @@ -20,6 +22,8 @@ The table below lists the APIs changes of the window manager subsystem in OpenHa | ohos.screen | Orientation | UNSPECIFIED = 0 | Added| | ohos.screen | Screen | setScreenActiveMode(modeIndex: number, callback: AsyncCallback\): void;
setScreenActiveMode(modeIndex: number): Promise\; | Added| | ohos.screen | Screen | setOrientation(orientation: Orientation, callback: AsyncCallback\): void;
setOrientation(orientation: Orientation): Promise\; | Added| +| ohos.screen | Screen | on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback): void; | Added| +| ohos.screen | Screen | off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback): void; | Added| | ohos.screen | Screen | readonly orientation: Orientation; | Added| | ohos.screen | Screen | readonly activeModeIndex: number; | Added| | ohos.screen | Screen | readonly supportedModeInfo: Array\; | Added| @@ -36,6 +40,8 @@ The table below lists the APIs changes of the window manager subsystem in OpenHa | ohos.window | WindowStage | getSubWindow(): Promise\>;
getSubWindow(callback: AsyncCallback\>): void; | Added| | ohos.window | WindowStage | createSubWindow(name: string): Promise\;
createSubWindow(name: string, callback: AsyncCallback\): void; | Added| | ohos.window | WindowStage | getMainWindow(): Promise\;
getMainWindow(callback: AsyncCallback\): void; | Added| +| ohos.window | WindowStage | on(eventType: 'windowStageEvent', callback: Callback): void; | Added| +| ohos.window | WindowStage | off(eventType: 'windowStageEvent', callback?: Callback): void; | Added| | ohos.window | WindowStageEventType | BACKGROUND | Added| | ohos.window | WindowStageEventType | INACTIVE | Added| | ohos.window | WindowStageEventType | ACTIVE | Added|