• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Window Manager Subsystem
2
3The table below lists the APIs changes of the window manager subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.animation.windowAnimationManager | WindowAnimationController | onScreenUnlock(finishCallback: WindowAnimationFinishedCallback): void; | Added|
10| ohos.animation.windowAnimationManager | WindowAnimationController | onCloseWindow(closingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
11| ohos.animation.windowAnimationManager | WindowAnimationController | onMinimizeWindow(minimizingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
12| ohos.animation.windowAnimationManager | WindowAnimationController | onAppTransition(fromWindowTarget: WindowAnimationTarget, toWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
13| ohos.animation.windowAnimationManager | WindowAnimationController | onStartAppFromOther(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
14| ohos.animation.windowAnimationManager | WindowAnimationController | onStartAppFromRecent(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
15| ohos.animation.windowAnimationManager | WindowAnimationController | onStartAppFromLauncher(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
16| ohos.animation.windowAnimationManager | WindowAnimationFinishedCallback | onAnimationFinish(): void; | Added|
17| ohos.animation.windowAnimationManager | WindowAnimationTarget | readonly windowBounds: RRect; | Added|
18| ohos.animation.windowAnimationManager | WindowAnimationTarget | readonly abilityName: string; | Added|
19| ohos.animation.windowAnimationManager | WindowAnimationTarget | readonly bundleName: string; | Added|
20| ohos.animation.windowAnimationManager | RRect | radius: number; | Added|
21| ohos.animation.windowAnimationManager | RRect | height: number; | Added|
22| ohos.animation.windowAnimationManager | RRect | width: number; | Added|
23| ohos.animation.windowAnimationManager | RRect | top: number; | Added|
24| ohos.animation.windowAnimationManager | RRect | left: number; | Added|
25| ohos.animation.windowAnimationManager | windowAnimationManager | setController(controller: WindowAnimationController): void; | Added|
26| ohos.display | display | getDefaultDisplaySync(): Display; | Added|
27| ohos.screen | Screen | setDensityDpi(densityDpi: number, callback: AsyncCallback\<void>): void;<br>setDensityDpi(densityDpi: number): Promise\<void>; | Added|
28| ohos.screen | VirtualScreenOption | surfaceId: string | Added|
29| ohos.screen | VirtualScreenOption | density: number | Added|
30| ohos.screen | VirtualScreenOption | height: number | Added|
31| ohos.screen | VirtualScreenOption | width: number | Added|
32| ohos.screen | VirtualScreenOption | name: string | Added|
33| ohos.screen | screen | setScreenRotationLocked(isLocked:boolean, callback: AsyncCallback\<void>): void;<br>setScreenRotationLocked(isLocked:boolean): Promise\<void>; | Added|
34| ohos.screen | screen | isScreenRotationLocked(callback: AsyncCallback\<boolean>): void;<br>isScreenRotationLocked(): Promise\<boolean>; | Added|
35| ohos.screen | screen | setVirtualScreenSurface(screenId:number, surfaceId: string, callback: AsyncCallback\<void>): void;<br>setVirtualScreenSurface(screenId:number, surfaceId: string): Promise\<void>; | Added|
36| ohos.screen | screen | destroyVirtualScreen(screenId:number, callback: AsyncCallback\<void>): void;<br>destroyVirtualScreen(screenId:number): Promise\<void>; | Added|
37| ohos.screen | screen | createVirtualScreen(options:VirtualScreenOption, callback: AsyncCallback\<Screen>): void;<br>createVirtualScreen(options:VirtualScreenOption): Promise\<Screen>; | Added|
38| ohos.window | WindowStage | setShowOnLockScreen(showOnLockScreen: boolean): void; | Added|
39| ohos.window | WindowStage | disableWindowDecor(): void; | Added|
40| ohos.window | Window | setForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback\<void>): void;<br>setForbidSplitMove(isForbidSplitMove: boolean): Promise\<void>; | Added|
41| ohos.window | Window | off(type: 'touchOutside', callback?: Callback\<void>): void; | Added|
42| ohos.window | Window | on(type: 'touchOutside', callback: Callback\<void>): void; | Added|
43| ohos.window | Window | off(type: 'avoidAreaChange', callback?: Callback\<{ type: AvoidAreaType, area: AvoidArea }>): void; | Added|
44| ohos.window | Window | on(type: 'avoidAreaChange', callback: Callback\<{ type: AvoidAreaType, area: AvoidArea }>): void; | Added|
45| ohos.window | Window | setPreferredOrientation(orientation: Orientation): Promise\<void>;<br>setPreferredOrientation(orientation: Orientation, callback: AsyncCallback\<void>): void; | Added|
46| ohos.window | Orientation | LOCKED = 11 | Added|
47| ohos.window | Orientation | AUTO_ROTATION_LANDSCAPE_RESTRICTED = 10 | Added|
48| ohos.window | Orientation | AUTO_ROTATION_PORTRAIT_RESTRICTED = 9 | Added|
49| ohos.window | Orientation | AUTO_ROTATION_RESTRICTED = 8 | Added|
50| ohos.window | Orientation | AUTO_ROTATION_LANDSCAPE = 7 | Added|
51| ohos.window | Orientation | AUTO_ROTATION_PORTRAIT = 6 | Added|
52| ohos.window | Orientation | AUTO_ROTATION = 5 | Added|
53| ohos.window | Orientation | LANDSCAPE_INVERTED = 4 | Added|
54| ohos.window | Orientation | PORTRAIT_INVERTED = 3 | Added|
55| ohos.window | Orientation | LANDSCAPE = 2 | Added|
56| ohos.window | Orientation | PORTRAIT = 1 | Added|
57| ohos.window | Orientation | UNSPECIFIED = 0 | Added|
58| ohos.window | AvoidArea | visible: boolean; | Added|
59| ohos.window | AvoidAreaType | TYPE_KEYBOARD | Added|
60| ohos.window | AvoidAreaType | TYPE_SYSTEM_GESTURE | Added|
61| ohos.window | WindowType | TYPE_POINTER | Added|
62| ohos.window | WindowType | TYPE_VOICE_INTERACTION | Added|
63| ohos.window | WindowType | TYPE_LAUNCHER_DOCK | Added|
64| ohos.window | WindowType | TYPE_LAUNCHER_RECENT | Added|
65| ohos.window | WindowType | TYPE_DESKTOP | Added|
66| ohos.window | WindowType | TYPE_WALLPAPER | Added|
67| ohos.window | WindowType | TYPE_FLOAT | Added|
68| ohos.window | WindowType | TYPE_NAVIGATION_BAR | Added|
69| ohos.window | WindowType | TYPE_VOLUME_OVERLAY | Added|
70| ohos.window | WindowType | TYPE_KEYGUARD | Added|
71| ohos.window | WindowType | TYPE_PANEL | Added|
72| ohos.window | WindowType | TYPE_STATUS_BAR | Added|
73| ohos.window | WindowType | TYPE_INPUT_METHOD | Added|
74| ohos.window | Window | dump(params: Array\<string>): Array\<string>; | Deleted|
75| ohos.window | Window | off(type: 'systemAvoidAreaChange', callback?: Callback\<AvoidArea>): void; | Deprecated|
76| ohos.window | Window | on(type: 'systemAvoidAreaChange', callback: Callback\<AvoidArea>): void; | Deprecated|
77