openharmony 鸿蒙 js-apidiff-window

2022-12-22 浏览 (1084)

窗口管理子系统JS API变更

OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,窗口管理子系统的API变更如下:

接口变更

模块名类名方法/属性/枚举/常量变更类型
ohos.animation.windowAnimationManagerWindowAnimationControlleronWindowAnimationTargetsUpdate(fullScreenWindowTarget: WindowAnimationTarget, floatingWindowTargets: Array<WindowAnimationTarget>): void;新增
ohos.animation.windowAnimationManagerWindowAnimationTargetreadonly missionId: number;新增
ohos.animation.windowAnimationManagerwindowAnimationManagerminimizeWindowWithAnimation(windowTarget: WindowAnimationTarget, callback: AsyncCallback<WindowAnimationFinishedCallback>): void;
minimizeWindowWithAnimation(windowTarget: WindowAnimationTarget): Promise<WindowAnimationFinishedCallback>;
新增
ohos.displayDisplaygetCutoutInfo(callback: AsyncCallback<CutoutInfo>): void;
getCutoutInfo(): Promise<CutoutInfo>;
新增
ohos.displayCutoutInforeadonly waterfallDisplayAreaRects: WaterfallDisplayAreaRects;新增
ohos.displayCutoutInforeadonly boundingRects: Array<Rect>;新增
ohos.displayWaterfallDisplayAreaRectsreadonly bottom: Rect;新增
ohos.displayWaterfallDisplayAreaRectsreadonly top: Rect;新增
ohos.displayWaterfallDisplayAreaRectsreadonly right: Rect;新增
ohos.displayWaterfallDisplayAreaRectsreadonly left: Rect;新增
ohos.displayRectheight: number;新增
ohos.displayRectwidth: number;新增
ohos.displayRecttop: number;新增
ohos.displayRectleft: number;新增
ohos.displaydisplayhasPrivateWindow(displayId: number): boolean;新增
ohos.windowWindowsetCornerRadius(cornerRadius: number): void;新增
ohos.windowWindowsetShadow(radius: number, color?: string, offsetX?: number, offsetY?: number): void;新增
ohos.windowWindowsetBackdropBlurStyle(blurStyle: BlurStyle): void;新增
ohos.windowWindowsetBackdropBlur(radius: number): void;新增
ohos.windowWindowsetBlur(radius: number): void;新增
ohos.windowWindowgetTransitionController(): TransitionController;新增
ohos.windowWindowtranslate(translateOptions: TranslateOptions): void;新增
ohos.windowWindowrotate(rotateOptions: RotateOptions): void;新增
ohos.windowWindowscale(scaleOptions: ScaleOptions): void;新增
ohos.windowWindowopacity(opacity: number): void;新增
ohos.windowWindowsnapshot(callback: AsyncCallback<image.PixelMap>): void;
snapshot(): Promise<image.PixelMap>;
新增
ohos.windowWindowsetSnapshotSkip(isSkip: boolean): void;新增
ohos.windowWindowsetWakeUpScreen(wakeUp: boolean): void;新增
ohos.windowWindowbindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>): Promise<void>;
bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>, callback: AsyncCallback<void>): void;
新增
ohos.windowWindowoff(type: 'dialogTargetTouch', callback?: Callback<void>): void;新增
ohos.windowWindowon(type: 'dialogTargetTouch', callback: Callback<void>): void;新增
ohos.windowWindowoff(type: 'screenshot', callback?: Callback<void>): void;新增
ohos.windowWindowon(type: 'screenshot', callback: Callback<void>): void;新增
ohos.windowWindowshowWithAnimation(callback: AsyncCallback<void>): void;
showWithAnimation(): Promise<void>;
新增
ohos.windowWindowhideWithAnimation(callback: AsyncCallback<void>): void;
hideWithAnimation(): Promise<void>;
新增
ohos.windowBlurStyleTHICK新增
ohos.windowBlurStyleREGULAR新增
ohos.windowBlurStyleTHIN新增
ohos.windowBlurStyleOFF新增
ohos.windowTransitionControlleranimationForHidden(context: TransitionContext): void;新增
ohos.windowTransitionControlleranimationForShown(context: TransitionContext): void;新增
ohos.windowTransitionContextcompleteTransition(isCompleted: boolean): void;新增
ohos.windowTransitionContexttoWindow: Window新增
ohos.windowTranslateOptionsz?: number;新增
ohos.windowTranslateOptionsy?: number;新增
ohos.windowTranslateOptionsx?: number;新增
ohos.windowRotateOptionspivotY?: number;新增
ohos.windowRotateOptionspivotX?: number;新增
ohos.windowRotateOptionsz?: number;新增
ohos.windowRotateOptionsy?: number;新增
ohos.windowRotateOptionsx?: number;新增
ohos.windowScaleOptionspivotY?: number;新增
ohos.windowScaleOptionspivotX?: number;新增
ohos.windowScaleOptionsy?: number;新增
ohos.windowScaleOptionsx?: number;新增
ohos.windowWindowPropertiesid: number新增
ohos.windowWindowTypeTYPE_SCREENSHOT新增
ohos.windowWindowTypeTYPE_DIALOG新增
ohos.windowWindowTypeTYPE_FLOAT_CAMERA新增
ohos.screenOrientationSENSOR_HORIZONTAL = 7删除
ohos.screenOrientationSENSOR_VERTICAL = 6删除
ohos.screenOrientationSENSOR = 5删除
ohos.windowWindowsetWindowType(type: WindowType): Promise<void>;
setWindowType(type: WindowType, callback: AsyncCallback<void>): void;
废弃
ohos.windowWindowPropertiesisRoundCorner: boolean废弃

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙元能力子系统JS API变更

harmony 鸿蒙无障碍子系统JS API变更

harmony 鸿蒙帐号子系统JS API变更

harmony 鸿蒙ArkUI子系统JS API变更

harmony 鸿蒙电源服务子系统JS API变更

harmony 鸿蒙包管理子系统JS API变更

harmony 鸿蒙基础通信子系统JS API变更

harmony 鸿蒙公共基础库子系统JS API变更

harmony 鸿蒙DFX子系统JS API变更

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/5ee6ea12f4394db793c905072e88b864