From fa471727a853f6a623639a22a71565631610b76a Mon Sep 17 00:00:00 2001 From: wangqing Date: Wed, 28 Sep 2022 09:55:43 +0800 Subject: [PATCH] =?UTF-8?q?OpenHarmony=203.2=20Beta1=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E7=9B=B8=E8=BE=83=E4=BA=8EOpenHarmony=203.1=20Release=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E7=9A=84=E7=AA=97=E5=8F=A3=E5=AD=90=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?API=E5=8F=98=E6=9B=B4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangqing --- .../api-change/v3.2-beta1/js-apidiff-window.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zh-cn/release-notes/api-change/v3.2-beta1/js-apidiff-window.md b/zh-cn/release-notes/api-change/v3.2-beta1/js-apidiff-window.md index 7740e7f65d..db7904981b 100644 --- a/zh-cn/release-notes/api-change/v3.2-beta1/js-apidiff-window.md +++ b/zh-cn/release-notes/api-change/v3.2-beta1/js-apidiff-window.md @@ -4,6 +4,8 @@ OpenHarmony 3.2 Beta1版本相较于OpenHarmony 3.1 Release版本,窗口管理 ## 接口变更 + + | 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | |---|---|---|---| | ohos.screen | ScreenModeInfo | refreshRate: number; | 新增 | @@ -20,6 +22,8 @@ OpenHarmony 3.2 Beta1版本相较于OpenHarmony 3.1 Release版本,窗口管理 | ohos.screen | Orientation | UNSPECIFIED = 0 | 新增 | | ohos.screen | Screen | setScreenActiveMode(modeIndex: number, callback: AsyncCallback\): void;
setScreenActiveMode(modeIndex: number): Promise\; | 新增 | | ohos.screen | Screen | setOrientation(orientation: Orientation, callback: AsyncCallback\): void;
setOrientation(orientation: Orientation): Promise\; | 新增 | +| ohos.screen | Screen | on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback): void; | 新增 | +| ohos.screen | Screen | off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback): void; | 新增 | | ohos.screen | Screen | readonly orientation: Orientation; | 新增 | | ohos.screen | Screen | readonly activeModeIndex: number; | 新增 | | ohos.screen | Screen | readonly supportedModeInfo: Array\; | 新增 | @@ -36,6 +40,8 @@ OpenHarmony 3.2 Beta1版本相较于OpenHarmony 3.1 Release版本,窗口管理 | ohos.window | WindowStage | getSubWindow(): Promise\>;
getSubWindow(callback: AsyncCallback\>): void; | 新增 | | ohos.window | WindowStage | createSubWindow(name: string): Promise\;
createSubWindow(name: string, callback: AsyncCallback\): void; | 新增 | | ohos.window | WindowStage | getMainWindow(): Promise\;
getMainWindow(callback: AsyncCallback\): void; | 新增 | +| ohos.window | WindowStage | on(eventType: 'windowStageEvent', callback: Callback): void; | 新增 | +| ohos.window | WindowStage | off(eventType: 'windowStageEvent', callback?: Callback): void; | 新增 | | ohos.window | WindowStageEventType | BACKGROUND | 新增 | | ohos.window | WindowStageEventType | INACTIVE | 新增 | | ohos.window | WindowStageEventType | ACTIVE | 新增 | -- GitLab