openharmony 鸿蒙 js-apidiff-window

2022-12-22 浏览 (878)

窗口管理子系统JS API变更

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

接口变更

模块名类名方法/属性/枚举/常量变更类型
ohos.animation.windowAnimationManagerWindowAnimationControlleronScreenUnlock(finishCallback: WindowAnimationFinishedCallback): void;新增
ohos.animation.windowAnimationManagerWindowAnimationControlleronCloseWindow(closingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;新增
ohos.animation.windowAnimationManagerWindowAnimationControlleronMinimizeWindow(minimizingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;新增
ohos.animation.windowAnimationManagerWindowAnimationControlleronAppTransition(fromWindowTarget: WindowAnimationTarget, toWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;新增
ohos.animation.windowAnimationManagerWindowAnimationControlleronStartAppFromOther(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;新增
ohos.animation.windowAnimationManagerWindowAnimationControlleronStartAppFromRecent(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;新增
ohos.animation.windowAnimationManagerWindowAnimationControlleronStartAppFromLauncher(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;新增
ohos.animation.windowAnimationManagerWindowAnimationFinishedCallbackonAnimationFinish(): void;新增
ohos.animation.windowAnimationManagerWindowAnimationTargetreadonly windowBounds: RRect;新增
ohos.animation.windowAnimationManagerWindowAnimationTargetreadonly abilityName: string;新增
ohos.animation.windowAnimationManagerWindowAnimationTargetreadonly bundleName: string;新增
ohos.animation.windowAnimationManagerRRectradius: number;新增
ohos.animation.windowAnimationManagerRRectheight: number;新增
ohos.animation.windowAnimationManagerRRectwidth: number;新增
ohos.animation.windowAnimationManagerRRecttop: number;新增
ohos.animation.windowAnimationManagerRRectleft: number;新增
ohos.animation.windowAnimationManagerwindowAnimationManagersetController(controller: WindowAnimationController): void;新增
ohos.displaydisplaygetDefaultDisplaySync(): Display;新增
ohos.screenScreensetDensityDpi(densityDpi: number, callback: AsyncCallback<void>): void;
setDensityDpi(densityDpi: number): Promise<void>;
新增
ohos.screenVirtualScreenOptionsurfaceId: string新增
ohos.screenVirtualScreenOptiondensity: number新增
ohos.screenVirtualScreenOptionheight: number新增
ohos.screenVirtualScreenOptionwidth: number新增
ohos.screenVirtualScreenOptionname: string新增
ohos.screenscreensetScreenRotationLocked(isLocked:boolean, callback: AsyncCallback<void>): void;
setScreenRotationLocked(isLocked:boolean): Promise<void>;
新增
ohos.screenscreenisScreenRotationLocked(callback: AsyncCallback<boolean>): void;
isScreenRotationLocked(): Promise<boolean>;
新增
ohos.screenscreensetVirtualScreenSurface(screenId:number, surfaceId: string, callback: AsyncCallback<void>): void;
setVirtualScreenSurface(screenId:number, surfaceId: string): Promise<void>;
新增
ohos.screenscreendestroyVirtualScreen(screenId:number, callback: AsyncCallback<void>): void;
destroyVirtualScreen(screenId:number): Promise<void>;
新增
ohos.screenscreencreateVirtualScreen(options:VirtualScreenOption, callback: AsyncCallback<Screen>): void;
createVirtualScreen(options:VirtualScreenOption): Promise<Screen>;
新增
ohos.windowWindowStagesetShowOnLockScreen(showOnLockScreen: boolean): void;新增
ohos.windowWindowStagedisableWindowDecor(): void;新增
ohos.windowWindowsetForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback<void>): void;
setForbidSplitMove(isForbidSplitMove: boolean): Promise<void>;
新增
ohos.windowWindowoff(type: 'touchOutside', callback?: Callback<void>): void;新增
ohos.windowWindowon(type: 'touchOutside', callback: Callback<void>): void;新增
ohos.windowWindowoff(type: 'avoidAreaChange', callback?: Callback<{ type: AvoidAreaType, area: AvoidArea }>): void;新增
ohos.windowWindowon(type: 'avoidAreaChange', callback: Callback<{ type: AvoidAreaType, area: AvoidArea }>): void;新增
ohos.windowWindowsetPreferredOrientation(orientation: Orientation): Promise<void>;
setPreferredOrientation(orientation: Orientation, callback: AsyncCallback<void>): void;
新增
ohos.windowOrientationLOCKED = 11新增
ohos.windowOrientationAUTO_ROTATION_LANDSCAPE_RESTRICTED = 10新增
ohos.windowOrientationAUTO_ROTATION_PORTRAIT_RESTRICTED = 9新增
ohos.windowOrientationAUTO_ROTATION_RESTRICTED = 8新增
ohos.windowOrientationAUTO_ROTATION_LANDSCAPE = 7新增
ohos.windowOrientationAUTO_ROTATION_PORTRAIT = 6新增
ohos.windowOrientationAUTO_ROTATION = 5新增
ohos.windowOrientationLANDSCAPE_INVERTED = 4新增
ohos.windowOrientationPORTRAIT_INVERTED = 3新增
ohos.windowOrientationLANDSCAPE = 2新增
ohos.windowOrientationPORTRAIT = 1新增
ohos.windowOrientationUNSPECIFIED = 0新增
ohos.windowAvoidAreavisible: boolean;新增
ohos.windowAvoidAreaTypeTYPE_KEYBOARD新增
ohos.windowAvoidAreaTypeTYPE_SYSTEM_GESTURE新增
ohos.windowWindowTypeTYPE_POINTER新增
ohos.windowWindowTypeTYPE_VOICE_INTERACTION新增
ohos.windowWindowTypeTYPE_LAUNCHER_DOCK新增
ohos.windowWindowTypeTYPE_LAUNCHER_RECENT新增
ohos.windowWindowTypeTYPE_DESKTOP新增
ohos.windowWindowTypeTYPE_WALLPAPER新增
ohos.windowWindowTypeTYPE_FLOAT新增
ohos.windowWindowTypeTYPE_NAVIGATION_BAR新增
ohos.windowWindowTypeTYPE_VOLUME_OVERLAY新增
ohos.windowWindowTypeTYPE_KEYGUARD新增
ohos.windowWindowTypeTYPE_PANEL新增
ohos.windowWindowTypeTYPE_STATUS_BAR新增
ohos.windowWindowTypeTYPE_INPUT_METHOD新增
ohos.windowWindowdump(params: Array<string>): Array<string>;删除
ohos.windowWindowoff(type: 'systemAvoidAreaChange', callback?: Callback<AvoidArea>): void;废弃
ohos.windowWindowon(type: 'systemAvoidAreaChange', callback: Callback<AvoidArea>): void;废弃

你可能感兴趣的鸿蒙文章

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

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

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

harmony 鸿蒙ArkUI子系统JS API变更

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

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

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

harmony 鸿蒙DFX子系统JS API变更

harmony 鸿蒙分布式数据管理子系统JS API变更

harmony 鸿蒙事件通知子系统JS API变更

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