openharmony 鸿蒙 js-apidiff-window

2023-02-03 浏览 (731)

JS API Changes of the Window Manager Subsystem

The table below lists the APIs changes of the window manager subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.

API Changes

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
ohos.animation.windowAnimationManagerWindowAnimationControlleronScreenUnlock(finishCallback: WindowAnimationFinishedCallback): void;Added
ohos.animation.windowAnimationManagerWindowAnimationControlleronCloseWindow(closingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;Added
ohos.animation.windowAnimationManagerWindowAnimationControlleronMinimizeWindow(minimizingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;Added
ohos.animation.windowAnimationManagerWindowAnimationControlleronAppTransition(fromWindowTarget: WindowAnimationTarget, toWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;Added
ohos.animation.windowAnimationManagerWindowAnimationControlleronStartAppFromOther(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;Added
ohos.animation.windowAnimationManagerWindowAnimationControlleronStartAppFromRecent(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;Added
ohos.animation.windowAnimationManagerWindowAnimationControlleronStartAppFromLauncher(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void;Added
ohos.animation.windowAnimationManagerWindowAnimationFinishedCallbackonAnimationFinish(): void;Added
ohos.animation.windowAnimationManagerWindowAnimationTargetreadonly windowBounds: RRect;Added
ohos.animation.windowAnimationManagerWindowAnimationTargetreadonly abilityName: string;Added
ohos.animation.windowAnimationManagerWindowAnimationTargetreadonly bundleName: string;Added
ohos.animation.windowAnimationManagerRRectradius: number;Added
ohos.animation.windowAnimationManagerRRectheight: number;Added
ohos.animation.windowAnimationManagerRRectwidth: number;Added
ohos.animation.windowAnimationManagerRRecttop: number;Added
ohos.animation.windowAnimationManagerRRectleft: number;Added
ohos.animation.windowAnimationManagerwindowAnimationManagersetController(controller: WindowAnimationController): void;Added
ohos.displaydisplaygetDefaultDisplaySync(): Display;Added
ohos.screenScreensetDensityDpi(densityDpi: number, callback: AsyncCallback<void>): void;
setDensityDpi(densityDpi: number): Promise<void>;
Added
ohos.screenVirtualScreenOptionsurfaceId: stringAdded
ohos.screenVirtualScreenOptiondensity: numberAdded
ohos.screenVirtualScreenOptionheight: numberAdded
ohos.screenVirtualScreenOptionwidth: numberAdded
ohos.screenVirtualScreenOptionname: stringAdded
ohos.screenscreensetScreenRotationLocked(isLocked:boolean, callback: AsyncCallback<void>): void;
setScreenRotationLocked(isLocked:boolean): Promise<void>;
Added
ohos.screenscreenisScreenRotationLocked(callback: AsyncCallback<boolean>): void;
isScreenRotationLocked(): Promise<boolean>;
Added
ohos.screenscreensetVirtualScreenSurface(screenId:number, surfaceId: string, callback: AsyncCallback<void>): void;
setVirtualScreenSurface(screenId:number, surfaceId: string): Promise<void>;
Added
ohos.screenscreendestroyVirtualScreen(screenId:number, callback: AsyncCallback<void>): void;
destroyVirtualScreen(screenId:number): Promise<void>;
Added
ohos.screenscreencreateVirtualScreen(options:VirtualScreenOption, callback: AsyncCallback<Screen>): void;
createVirtualScreen(options:VirtualScreenOption): Promise<Screen>;
Added
ohos.windowWindowStagesetShowOnLockScreen(showOnLockScreen: boolean): void;Added
ohos.windowWindowStagedisableWindowDecor(): void;Added
ohos.windowWindowsetForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback<void>): void;
setForbidSplitMove(isForbidSplitMove: boolean): Promise<void>;
Added
ohos.windowWindowoff(type: 'touchOutside', callback?: Callback<void>): void;Added
ohos.windowWindowon(type: 'touchOutside', callback: Callback<void>): void;Added
ohos.windowWindowoff(type: 'avoidAreaChange', callback?: Callback<{ type: AvoidAreaType, area: AvoidArea }>): void;Added
ohos.windowWindowon(type: 'avoidAreaChange', callback: Callback<{ type: AvoidAreaType, area: AvoidArea }>): void;Added
ohos.windowWindowsetPreferredOrientation(orientation: Orientation): Promise<void>;
setPreferredOrientation(orientation: Orientation, callback: AsyncCallback<void>): void;
Added
ohos.windowOrientationLOCKED = 11Added
ohos.windowOrientationAUTO_ROTATION_LANDSCAPE_RESTRICTED = 10Added
ohos.windowOrientationAUTO_ROTATION_PORTRAIT_RESTRICTED = 9Added
ohos.windowOrientationAUTO_ROTATION_RESTRICTED = 8Added
ohos.windowOrientationAUTO_ROTATION_LANDSCAPE = 7Added
ohos.windowOrientationAUTO_ROTATION_PORTRAIT = 6Added
ohos.windowOrientationAUTO_ROTATION = 5Added
ohos.windowOrientationLANDSCAPE_INVERTED = 4Added
ohos.windowOrientationPORTRAIT_INVERTED = 3Added
ohos.windowOrientationLANDSCAPE = 2Added
ohos.windowOrientationPORTRAIT = 1Added
ohos.windowOrientationUNSPECIFIED = 0Added
ohos.windowAvoidAreavisible: boolean;Added
ohos.windowAvoidAreaTypeTYPE_KEYBOARDAdded
ohos.windowAvoidAreaTypeTYPE_SYSTEM_GESTUREAdded
ohos.windowWindowTypeTYPE_POINTERAdded
ohos.windowWindowTypeTYPE_VOICE_INTERACTIONAdded
ohos.windowWindowTypeTYPE_LAUNCHER_DOCKAdded
ohos.windowWindowTypeTYPE_LAUNCHER_RECENTAdded
ohos.windowWindowTypeTYPE_DESKTOPAdded
ohos.windowWindowTypeTYPE_WALLPAPERAdded
ohos.windowWindowTypeTYPE_FLOATAdded
ohos.windowWindowTypeTYPE_NAVIGATION_BARAdded
ohos.windowWindowTypeTYPE_VOLUME_OVERLAYAdded
ohos.windowWindowTypeTYPE_KEYGUARDAdded
ohos.windowWindowTypeTYPE_PANELAdded
ohos.windowWindowTypeTYPE_STATUS_BARAdded
ohos.windowWindowTypeTYPE_INPUT_METHODAdded
ohos.windowWindowdump(params: Array<string>): Array<string>;Deleted
ohos.windowWindowoff(type: 'systemAvoidAreaChange', callback?: Callback<AvoidArea>): void;Deprecated
ohos.windowWindowon(type: 'systemAvoidAreaChange', callback: Callback<AvoidArea>): void;Deprecated

你可能感兴趣的鸿蒙文章

harmony 鸿蒙JS API Changes of the Ability Framework

harmony 鸿蒙JS API Changes of the Accessibility Subsystem

harmony 鸿蒙JS API Changes of the Account Subsystem

harmony 鸿蒙JS API Changes of the ArkUI Development Framework

harmony 鸿蒙JS API Changes of the Bundle Management Framework

harmony 鸿蒙JS API Changes of the Communication Subsystem

harmony 鸿蒙JS API Changes of the Compiler and Runtime Subsystem

harmony 鸿蒙JS API Changes of the DFX Subsystem

harmony 鸿蒙JS API Changes of the Distributed Data Management Subsystem

harmony 鸿蒙JS API Changes of the Common Event and Notification Subsystem

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