harmony(鸿蒙)窗口管理子系统JS API变更

2022-08-09 浏览 (1101)

窗口管理子系统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(鸿蒙)OpenHarmony启用应用沙箱机制-适配指导

harmony(鸿蒙)3.2 beta2相对3.2 beta1变更详细说明

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变更

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