1| Change Type | Old Version | New Version | d.ts File | 2| ---- | ------ | ------ | -------- | 3|Added|NA|Class name: Window;<br>Method or attribute name: getUIContext() : UIContext;|@ohos.window.d.ts| 4|Error code added|Class name: screen;<br>Method or attribute name: function getAllScreens(): Promise\<Array\<Screen>>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function getAllScreens(): Promise\<Array\<Screen>>;<br>New version information: 1400001|@ohos.screen.d.ts| 5|Error code added|Class name: screen;<br>Method or attribute name: function makeExpand(options: Array\<ExpandOption>): Promise\<number>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function makeExpand(options: Array\<ExpandOption>): Promise\<number>;<br>New version information: 401,1400001|@ohos.screen.d.ts| 6|Error code added|Class name: screen;<br>Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array\<number>): Promise\<number>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array\<number>): Promise\<number>;<br>New version information: 401,1400001|@ohos.screen.d.ts| 7|Error code added|Class name: screen;<br>Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>New version information: 201,401,1400001|@ohos.screen.d.ts| 8|Error code added|Class name: screen;<br>Method or attribute name: function destroyVirtualScreen(screenId: number): Promise\<void>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function destroyVirtualScreen(screenId: number): Promise\<void>;<br>New version information: 401,1400002|@ohos.screen.d.ts| 9|Error code added|Class name: screen;<br>Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>New version information: 201,401,1400001|@ohos.screen.d.ts| 10|Error code added|Class name: screen;<br>Method or attribute name: function setScreenRotationLocked(isLocked: boolean): Promise\<void>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function setScreenRotationLocked(isLocked: boolean): Promise\<void>;<br>New version information: 401|@ohos.screen.d.ts| 11|Error code added|Class name: Screen;<br>Method or attribute name: setOrientation(orientation: Orientation): Promise\<void>;<br>Old version information: |Class name: Screen;<br>Method or attribute name: setOrientation(orientation: Orientation): Promise\<void>;<br>New version information: 401,1400003|@ohos.screen.d.ts| 12|Error code added|Class name: Screen;<br>Method or attribute name: setScreenActiveMode(modeIndex: number): Promise\<void>;<br>Old version information: |Class name: Screen;<br>Method or attribute name: setScreenActiveMode(modeIndex: number): Promise\<void>;<br>New version information: 401,1400003|@ohos.screen.d.ts| 13|Error code added|Class name: Screen;<br>Method or attribute name: setDensityDpi(densityDpi: number): Promise\<void>;<br>Old version information: |Class name: Screen;<br>Method or attribute name: setDensityDpi(densityDpi: number): Promise\<void>;<br>New version information: 401,1400003|@ohos.screen.d.ts| 14|Access level changed|Class name: screen;<br>Method or attribute name: function getAllScreens(callback: AsyncCallback\<Array\<Screen>>): void;<br>Old version information: |Class name: screen;<br>Method or attribute name: function getAllScreens(callback: AsyncCallback\<Array\<Screen>>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 15|Access level changed|Class name: screen;<br>Method or attribute name: function getAllScreens(): Promise\<Array\<Screen>>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function getAllScreens(): Promise\<Array\<Screen>>;<br>New version information: systemapi|@ohos.screen.d.ts| 16|Access level changed|Class name: screen;<br>Method or attribute name: function on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback\<number>): void;<br>Old version information: |Class name: screen;<br>Method or attribute name: function on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback\<number>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 17|Access level changed|Class name: screen;<br>Method or attribute name: function off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback\<number>): void;<br>Old version information: |Class name: screen;<br>Method or attribute name: function off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback\<number>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 18|Access level changed|Class name: screen;<br>Method or attribute name: function makeExpand(options: Array\<ExpandOption>, callback: AsyncCallback\<number>): void;<br>Old version information: |Class name: screen;<br>Method or attribute name: function makeExpand(options: Array\<ExpandOption>, callback: AsyncCallback\<number>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 19|Access level changed|Class name: screen;<br>Method or attribute name: function makeExpand(options: Array\<ExpandOption>): Promise\<number>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function makeExpand(options: Array\<ExpandOption>): Promise\<number>;<br>New version information: systemapi|@ohos.screen.d.ts| 20|Access level changed|Class name: screen;<br>Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array\<number>, callback: AsyncCallback\<number>): void;<br>Old version information: |Class name: screen;<br>Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array\<number>, callback: AsyncCallback\<number>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 21|Access level changed|Class name: screen;<br>Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array\<number>): Promise\<number>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array\<number>): Promise\<number>;<br>New version information: systemapi|@ohos.screen.d.ts| 22|Access level changed|Class name: screen;<br>Method or attribute name: function createVirtualScreen(options: VirtualScreenOption, callback: AsyncCallback\<Screen>): void;<br>Old version information: |Class name: screen;<br>Method or attribute name: function createVirtualScreen(options: VirtualScreenOption, callback: AsyncCallback\<Screen>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 23|Access level changed|Class name: screen;<br>Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>New version information: systemapi|@ohos.screen.d.ts| 24|Access level changed|Class name: screen;<br>Method or attribute name: function destroyVirtualScreen(screenId: number, callback: AsyncCallback\<void>): void;<br>Old version information: |Class name: screen;<br>Method or attribute name: function destroyVirtualScreen(screenId: number, callback: AsyncCallback\<void>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 25|Access level changed|Class name: screen;<br>Method or attribute name: function destroyVirtualScreen(screenId: number): Promise\<void>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function destroyVirtualScreen(screenId: number): Promise\<void>;<br>New version information: systemapi|@ohos.screen.d.ts| 26|Access level changed|Class name: screen;<br>Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string, callback: AsyncCallback\<void>): void;<br>Old version information: |Class name: screen;<br>Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string, callback: AsyncCallback\<void>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 27|Access level changed|Class name: screen;<br>Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>New version information: systemapi|@ohos.screen.d.ts| 28|Access level changed|Class name: screen;<br>Method or attribute name: function isScreenRotationLocked(callback: AsyncCallback\<boolean>): void;<br>Old version information: |Class name: screen;<br>Method or attribute name: function isScreenRotationLocked(callback: AsyncCallback\<boolean>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 29|Access level changed|Class name: screen;<br>Method or attribute name: function isScreenRotationLocked(): Promise\<boolean>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function isScreenRotationLocked(): Promise\<boolean>;<br>New version information: systemapi|@ohos.screen.d.ts| 30|Access level changed|Class name: screen;<br>Method or attribute name: function setScreenRotationLocked(isLocked: boolean, callback: AsyncCallback\<void>): void;<br>Old version information: |Class name: screen;<br>Method or attribute name: function setScreenRotationLocked(isLocked: boolean, callback: AsyncCallback\<void>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 31|Access level changed|Class name: screen;<br>Method or attribute name: function setScreenRotationLocked(isLocked: boolean): Promise\<void>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function setScreenRotationLocked(isLocked: boolean): Promise\<void>;<br>New version information: systemapi|@ohos.screen.d.ts| 32|Access level changed|Class name: ExpandOption;<br>Method or attribute name: interface ExpandOption<br>Old version information: |Class name: ExpandOption;<br>Method or attribute name: interface ExpandOption<br>New version information: systemapi|@ohos.screen.d.ts| 33|Access level changed|Class name: ExpandOption;<br>Method or attribute name: screenId: number;<br>Old version information: |Class name: ExpandOption;<br>Method or attribute name: screenId: number;<br>New version information: systemapi|@ohos.screen.d.ts| 34|Access level changed|Class name: ExpandOption;<br>Method or attribute name: startX: number;<br>Old version information: |Class name: ExpandOption;<br>Method or attribute name: startX: number;<br>New version information: systemapi|@ohos.screen.d.ts| 35|Access level changed|Class name: ExpandOption;<br>Method or attribute name: startY: number;<br>Old version information: |Class name: ExpandOption;<br>Method or attribute name: startY: number;<br>New version information: systemapi|@ohos.screen.d.ts| 36|Access level changed|Class name: VirtualScreenOption;<br>Method or attribute name: interface VirtualScreenOption<br>Old version information: |Class name: VirtualScreenOption;<br>Method or attribute name: interface VirtualScreenOption<br>New version information: systemapi|@ohos.screen.d.ts| 37|Access level changed|Class name: VirtualScreenOption;<br>Method or attribute name: name: string;<br>Old version information: |Class name: VirtualScreenOption;<br>Method or attribute name: name: string;<br>New version information: systemapi|@ohos.screen.d.ts| 38|Access level changed|Class name: VirtualScreenOption;<br>Method or attribute name: width: number;<br>Old version information: |Class name: VirtualScreenOption;<br>Method or attribute name: width: number;<br>New version information: systemapi|@ohos.screen.d.ts| 39|Access level changed|Class name: VirtualScreenOption;<br>Method or attribute name: height: number;<br>Old version information: |Class name: VirtualScreenOption;<br>Method or attribute name: height: number;<br>New version information: systemapi|@ohos.screen.d.ts| 40|Access level changed|Class name: VirtualScreenOption;<br>Method or attribute name: density: number;<br>Old version information: |Class name: VirtualScreenOption;<br>Method or attribute name: density: number;<br>New version information: systemapi|@ohos.screen.d.ts| 41|Access level changed|Class name: VirtualScreenOption;<br>Method or attribute name: surfaceId: string;<br>Old version information: |Class name: VirtualScreenOption;<br>Method or attribute name: surfaceId: string;<br>New version information: systemapi|@ohos.screen.d.ts| 42|Access level changed|Class name: ScreenSourceMode;<br>Method or attribute name: enum ScreenSourceMode<br>Old version information: |Class name: ScreenSourceMode;<br>Method or attribute name: enum ScreenSourceMode<br>New version information: systemapi|@ohos.screen.d.ts| 43|Access level changed|Class name: ScreenSourceMode;<br>Method or attribute name: SCREEN_MAIN = 0<br>Old version information: |Class name: ScreenSourceMode;<br>Method or attribute name: SCREEN_MAIN = 0<br>New version information: systemapi|@ohos.screen.d.ts| 44|Access level changed|Class name: ScreenSourceMode;<br>Method or attribute name: SCREEN_MIRROR = 1<br>Old version information: |Class name: ScreenSourceMode;<br>Method or attribute name: SCREEN_MIRROR = 1<br>New version information: systemapi|@ohos.screen.d.ts| 45|Access level changed|Class name: ScreenSourceMode;<br>Method or attribute name: SCREEN_EXTEND = 2<br>Old version information: |Class name: ScreenSourceMode;<br>Method or attribute name: SCREEN_EXTEND = 2<br>New version information: systemapi|@ohos.screen.d.ts| 46|Access level changed|Class name: ScreenSourceMode;<br>Method or attribute name: SCREEN_ALONE = 3<br>Old version information: |Class name: ScreenSourceMode;<br>Method or attribute name: SCREEN_ALONE = 3<br>New version information: systemapi|@ohos.screen.d.ts| 47|Access level changed|Class name: Screen;<br>Method or attribute name: interface Screen<br>Old version information: |Class name: Screen;<br>Method or attribute name: interface Screen<br>New version information: systemapi|@ohos.screen.d.ts| 48|Access level changed|Class name: Screen;<br>Method or attribute name: readonly id: number;<br>Old version information: |Class name: Screen;<br>Method or attribute name: readonly id: number;<br>New version information: systemapi|@ohos.screen.d.ts| 49|Access level changed|Class name: Screen;<br>Method or attribute name: readonly parent: number;<br>Old version information: |Class name: Screen;<br>Method or attribute name: readonly parent: number;<br>New version information: systemapi|@ohos.screen.d.ts| 50|Access level changed|Class name: Screen;<br>Method or attribute name: readonly supportedModeInfo: Array\<ScreenModeInfo>;<br>Old version information: |Class name: Screen;<br>Method or attribute name: readonly supportedModeInfo: Array\<ScreenModeInfo>;<br>New version information: systemapi|@ohos.screen.d.ts| 51|Access level changed|Class name: Screen;<br>Method or attribute name: readonly activeModeIndex: number;<br>Old version information: |Class name: Screen;<br>Method or attribute name: readonly activeModeIndex: number;<br>New version information: systemapi|@ohos.screen.d.ts| 52|Access level changed|Class name: Screen;<br>Method or attribute name: readonly orientation: Orientation;<br>Old version information: |Class name: Screen;<br>Method or attribute name: readonly orientation: Orientation;<br>New version information: systemapi|@ohos.screen.d.ts| 53|Access level changed|Class name: Screen;<br>Method or attribute name: readonly sourceMode: ScreenSourceMode;<br>Old version information: |Class name: Screen;<br>Method or attribute name: readonly sourceMode: ScreenSourceMode;<br>New version information: systemapi|@ohos.screen.d.ts| 54|Access level changed|Class name: Screen;<br>Method or attribute name: setOrientation(orientation: Orientation, callback: AsyncCallback\<void>): void;<br>Old version information: |Class name: Screen;<br>Method or attribute name: setOrientation(orientation: Orientation, callback: AsyncCallback\<void>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 55|Access level changed|Class name: Screen;<br>Method or attribute name: setOrientation(orientation: Orientation): Promise\<void>;<br>Old version information: |Class name: Screen;<br>Method or attribute name: setOrientation(orientation: Orientation): Promise\<void>;<br>New version information: systemapi|@ohos.screen.d.ts| 56|Access level changed|Class name: Screen;<br>Method or attribute name: setScreenActiveMode(modeIndex: number, callback: AsyncCallback\<void>): void;<br>Old version information: |Class name: Screen;<br>Method or attribute name: setScreenActiveMode(modeIndex: number, callback: AsyncCallback\<void>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 57|Access level changed|Class name: Screen;<br>Method or attribute name: setScreenActiveMode(modeIndex: number): Promise\<void>;<br>Old version information: |Class name: Screen;<br>Method or attribute name: setScreenActiveMode(modeIndex: number): Promise\<void>;<br>New version information: systemapi|@ohos.screen.d.ts| 58|Access level changed|Class name: Screen;<br>Method or attribute name: setDensityDpi(densityDpi: number, callback: AsyncCallback\<void>): void;<br>Old version information: |Class name: Screen;<br>Method or attribute name: setDensityDpi(densityDpi: number, callback: AsyncCallback\<void>): void;<br>New version information: systemapi|@ohos.screen.d.ts| 59|Access level changed|Class name: Screen;<br>Method or attribute name: setDensityDpi(densityDpi: number): Promise\<void>;<br>Old version information: |Class name: Screen;<br>Method or attribute name: setDensityDpi(densityDpi: number): Promise\<void>;<br>New version information: systemapi|@ohos.screen.d.ts| 60|Access level changed|Class name: Orientation;<br>Method or attribute name: enum Orientation<br>Old version information: |Class name: Orientation;<br>Method or attribute name: enum Orientation<br>New version information: systemapi|@ohos.screen.d.ts| 61|Access level changed|Class name: ScreenModeInfo;<br>Method or attribute name: interface ScreenModeInfo<br>Old version information: |Class name: ScreenModeInfo;<br>Method or attribute name: interface ScreenModeInfo<br>New version information: systemapi|@ohos.screen.d.ts| 62|Permission changed|Class name: screen;<br>Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>New version information: ohos.permission.CAPTURE_SCREEN|@ohos.screen.d.ts| 63|Permission changed|Class name: screen;<br>Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>Old version information: |Class name: screen;<br>Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>New version information: ohos.permission.CAPTURE_SCREEN|@ohos.screen.d.ts| 64|Function changed|Class name: Window;<br>Method or attribute name: off(type: 'windowEvent',callback:Callback\<WindowEventType>):void;|Class name: Window;<br>Method or attribute name: off(type:'windowEvent',callback?: Callback\<WindowEventType):void;|@ohos.window.d.ts| 65