1# 窗口管理子系统JS API变更 2 3OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,窗口管理子系统的API变更如下: 4 5## 接口变更 6 7| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | 8|---|---|---|---| 9| ohos.animation.windowAnimationManager | WindowAnimationController | onWindowAnimationTargetsUpdate(fullScreenWindowTarget: WindowAnimationTarget, floatingWindowTargets: Array\<WindowAnimationTarget>): void; | 新增 | 10| ohos.animation.windowAnimationManager | WindowAnimationTarget | readonly missionId: number; | 新增 | 11| ohos.animation.windowAnimationManager | windowAnimationManager | minimizeWindowWithAnimation(windowTarget: WindowAnimationTarget, callback: AsyncCallback\<WindowAnimationFinishedCallback>): void;<br>minimizeWindowWithAnimation(windowTarget: WindowAnimationTarget): Promise\<WindowAnimationFinishedCallback>; | 新增 | 12| ohos.display | Display | getCutoutInfo(callback: AsyncCallback\<CutoutInfo>): void;<br>getCutoutInfo(): Promise\<CutoutInfo>; | 新增 | 13| ohos.display | CutoutInfo | readonly waterfallDisplayAreaRects: WaterfallDisplayAreaRects; | 新增 | 14| ohos.display | CutoutInfo | readonly boundingRects: Array\<Rect>; | 新增 | 15| ohos.display | WaterfallDisplayAreaRects | readonly bottom: Rect; | 新增 | 16| ohos.display | WaterfallDisplayAreaRects | readonly top: Rect; | 新增 | 17| ohos.display | WaterfallDisplayAreaRects | readonly right: Rect; | 新增 | 18| ohos.display | WaterfallDisplayAreaRects | readonly left: Rect; | 新增 | 19| ohos.display | Rect | height: number; | 新增 | 20| ohos.display | Rect | width: number; | 新增 | 21| ohos.display | Rect | top: number; | 新增 | 22| ohos.display | Rect | left: number; | 新增 | 23| ohos.display | display | hasPrivateWindow(displayId: number): boolean; | 新增 | 24| ohos.window | Window | setCornerRadius(cornerRadius: number): void; | 新增 | 25| ohos.window | Window | setShadow(radius: number, color?: string, offsetX?: number, offsetY?: number): void; | 新增 | 26| ohos.window | Window | setBackdropBlurStyle(blurStyle: BlurStyle): void; | 新增 | 27| ohos.window | Window | setBackdropBlur(radius: number): void; | 新增 | 28| ohos.window | Window | setBlur(radius: number): void; | 新增 | 29| ohos.window | Window | getTransitionController(): TransitionController; | 新增 | 30| ohos.window | Window | translate(translateOptions: TranslateOptions): void; | 新增 | 31| ohos.window | Window | rotate(rotateOptions: RotateOptions): void; | 新增 | 32| ohos.window | Window | scale(scaleOptions: ScaleOptions): void; | 新增 | 33| ohos.window | Window | opacity(opacity: number): void; | 新增 | 34| ohos.window | Window | snapshot(callback: AsyncCallback\<image.PixelMap>): void;<br>snapshot(): Promise\<image.PixelMap>; | 新增 | 35| ohos.window | Window | setSnapshotSkip(isSkip: boolean): void; | 新增 | 36| ohos.window | Window | setWakeUpScreen(wakeUp: boolean): void; | 新增 | 37| ohos.window | Window | bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback\<void>): Promise\<void>;<br>bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback\<void>, callback: AsyncCallback\<void>): void; | 新增 | 38| ohos.window | Window | off(type: 'dialogTargetTouch', callback?: Callback\<void>): void; | 新增 | 39| ohos.window | Window | on(type: 'dialogTargetTouch', callback: Callback\<void>): void; | 新增 | 40| ohos.window | Window | off(type: 'screenshot', callback?: Callback\<void>): void; | 新增 | 41| ohos.window | Window | on(type: 'screenshot', callback: Callback\<void>): void; | 新增 | 42| ohos.window | Window | showWithAnimation(callback: AsyncCallback\<void>): void;<br>showWithAnimation(): Promise\<void>; | 新增 | 43| ohos.window | Window | hideWithAnimation(callback: AsyncCallback\<void>): void;<br>hideWithAnimation(): Promise\<void>; | 新增 | 44| ohos.window | BlurStyle | THICK | 新增 | 45| ohos.window | BlurStyle | REGULAR | 新增 | 46| ohos.window | BlurStyle | THIN | 新增 | 47| ohos.window | BlurStyle | OFF | 新增 | 48| ohos.window | TransitionController | animationForHidden(context: TransitionContext): void; | 新增 | 49| ohos.window | TransitionController | animationForShown(context: TransitionContext): void; | 新增 | 50| ohos.window | TransitionContext | completeTransition(isCompleted: boolean): void; | 新增 | 51| ohos.window | TransitionContext | toWindow: Window | 新增 | 52| ohos.window | TranslateOptions | z?: number; | 新增 | 53| ohos.window | TranslateOptions | y?: number; | 新增 | 54| ohos.window | TranslateOptions | x?: number; | 新增 | 55| ohos.window | RotateOptions | pivotY?: number; | 新增 | 56| ohos.window | RotateOptions | pivotX?: number; | 新增 | 57| ohos.window | RotateOptions | z?: number; | 新增 | 58| ohos.window | RotateOptions | y?: number; | 新增 | 59| ohos.window | RotateOptions | x?: number; | 新增 | 60| ohos.window | ScaleOptions | pivotY?: number; | 新增 | 61| ohos.window | ScaleOptions | pivotX?: number; | 新增 | 62| ohos.window | ScaleOptions | y?: number; | 新增 | 63| ohos.window | ScaleOptions | x?: number; | 新增 | 64| ohos.window | WindowProperties | id: number | 新增 | 65| ohos.window | WindowType | TYPE_SCREENSHOT | 新增 | 66| ohos.window | WindowType | TYPE_DIALOG | 新增 | 67| ohos.window | WindowType | TYPE_FLOAT_CAMERA | 新增 | 68| ohos.screen | Orientation | SENSOR_HORIZONTAL = 7 | 删除 | 69| ohos.screen | Orientation | SENSOR_VERTICAL = 6 | 删除 | 70| ohos.screen | Orientation | SENSOR = 5 | 删除 | 71| ohos.window | Window | setWindowType(type: WindowType): Promise\<void>;<br>setWindowType(type: WindowType, callback: AsyncCallback\<void>): void; | 废弃 | 72| ohos.window | WindowProperties | isRoundCorner: boolean | 废弃 | 73