1| 操作 | 旧版本 | 新版本 | d.ts文件 | 2| ---- | ------ | ------ | -------- | 3|新增|NA|类名:Window;<br>方法or属性:getUIContext() : UIContext;|@ohos.window.d.ts| 4|新增(错误码)|类名:screen;<br>方法or属性:function getAllScreens(): Promise\<Array\<Screen>>;<br>旧版本信息:|类名:screen;<br>方法or属性:function getAllScreens(): Promise\<Array\<Screen>>;<br>新版本信息:1400001|@ohos.screen.d.ts| 5|新增(错误码)|类名:screen;<br>方法or属性:function makeExpand(options: Array\<ExpandOption>): Promise\<number>;<br>旧版本信息:|类名:screen;<br>方法or属性:function makeExpand(options: Array\<ExpandOption>): Promise\<number>;<br>新版本信息:401,1400001|@ohos.screen.d.ts| 6|新增(错误码)|类名:screen;<br>方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\<number>): Promise\<number>;<br>旧版本信息:|类名:screen;<br>方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\<number>): Promise\<number>;<br>新版本信息:401,1400001|@ohos.screen.d.ts| 7|新增(错误码)|类名:screen;<br>方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>旧版本信息:|类名:screen;<br>方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>新版本信息:201,401,1400001|@ohos.screen.d.ts| 8|新增(错误码)|类名:screen;<br>方法or属性:function destroyVirtualScreen(screenId: number): Promise\<void>;<br>旧版本信息:|类名:screen;<br>方法or属性:function destroyVirtualScreen(screenId: number): Promise\<void>;<br>新版本信息:401,1400002|@ohos.screen.d.ts| 9|新增(错误码)|类名:screen;<br>方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>旧版本信息:|类名:screen;<br>方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>新版本信息:201,401,1400001|@ohos.screen.d.ts| 10|新增(错误码)|类名:screen;<br>方法or属性:function setScreenRotationLocked(isLocked: boolean): Promise\<void>;<br>旧版本信息:|类名:screen;<br>方法or属性:function setScreenRotationLocked(isLocked: boolean): Promise\<void>;<br>新版本信息:401|@ohos.screen.d.ts| 11|新增(错误码)|类名:Screen;<br>方法or属性:setOrientation(orientation: Orientation): Promise\<void>;<br>旧版本信息:|类名:Screen;<br>方法or属性:setOrientation(orientation: Orientation): Promise\<void>;<br>新版本信息:401,1400003|@ohos.screen.d.ts| 12|新增(错误码)|类名:Screen;<br>方法or属性:setScreenActiveMode(modeIndex: number): Promise\<void>;<br>旧版本信息:|类名:Screen;<br>方法or属性:setScreenActiveMode(modeIndex: number): Promise\<void>;<br>新版本信息:401,1400003|@ohos.screen.d.ts| 13|新增(错误码)|类名:Screen;<br>方法or属性:setDensityDpi(densityDpi: number): Promise\<void>;<br>旧版本信息:|类名:Screen;<br>方法or属性:setDensityDpi(densityDpi: number): Promise\<void>;<br>新版本信息:401,1400003|@ohos.screen.d.ts| 14|访问级别有变化|类名:screen;<br>方法or属性:function getAllScreens(callback: AsyncCallback\<Array\<Screen>>): void;<br>旧版本信息:|类名:screen;<br>方法or属性:function getAllScreens(callback: AsyncCallback\<Array\<Screen>>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 15|访问级别有变化|类名:screen;<br>方法or属性:function getAllScreens(): Promise\<Array\<Screen>>;<br>旧版本信息:|类名:screen;<br>方法or属性:function getAllScreens(): Promise\<Array\<Screen>>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 16|访问级别有变化|类名:screen;<br>方法or属性:function on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback\<number>): void;<br>旧版本信息:|类名:screen;<br>方法or属性:function on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback\<number>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 17|访问级别有变化|类名:screen;<br>方法or属性:function off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback\<number>): void;<br>旧版本信息:|类名:screen;<br>方法or属性:function off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback\<number>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 18|访问级别有变化|类名:screen;<br>方法or属性:function makeExpand(options: Array\<ExpandOption>, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:screen;<br>方法or属性:function makeExpand(options: Array\<ExpandOption>, callback: AsyncCallback\<number>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 19|访问级别有变化|类名:screen;<br>方法or属性:function makeExpand(options: Array\<ExpandOption>): Promise\<number>;<br>旧版本信息:|类名:screen;<br>方法or属性:function makeExpand(options: Array\<ExpandOption>): Promise\<number>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 20|访问级别有变化|类名:screen;<br>方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\<number>, callback: AsyncCallback\<number>): void;<br>旧版本信息:|类名:screen;<br>方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\<number>, callback: AsyncCallback\<number>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 21|访问级别有变化|类名:screen;<br>方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\<number>): Promise\<number>;<br>旧版本信息:|类名:screen;<br>方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\<number>): Promise\<number>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 22|访问级别有变化|类名:screen;<br>方法or属性:function createVirtualScreen(options: VirtualScreenOption, callback: AsyncCallback\<Screen>): void;<br>旧版本信息:|类名:screen;<br>方法or属性:function createVirtualScreen(options: VirtualScreenOption, callback: AsyncCallback\<Screen>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 23|访问级别有变化|类名:screen;<br>方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>旧版本信息:|类名:screen;<br>方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 24|访问级别有变化|类名:screen;<br>方法or属性:function destroyVirtualScreen(screenId: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:screen;<br>方法or属性:function destroyVirtualScreen(screenId: number, callback: AsyncCallback\<void>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 25|访问级别有变化|类名:screen;<br>方法or属性:function destroyVirtualScreen(screenId: number): Promise\<void>;<br>旧版本信息:|类名:screen;<br>方法or属性:function destroyVirtualScreen(screenId: number): Promise\<void>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 26|访问级别有变化|类名:screen;<br>方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:screen;<br>方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string, callback: AsyncCallback\<void>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 27|访问级别有变化|类名:screen;<br>方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>旧版本信息:|类名:screen;<br>方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 28|访问级别有变化|类名:screen;<br>方法or属性:function isScreenRotationLocked(callback: AsyncCallback\<boolean>): void;<br>旧版本信息:|类名:screen;<br>方法or属性:function isScreenRotationLocked(callback: AsyncCallback\<boolean>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 29|访问级别有变化|类名:screen;<br>方法or属性:function isScreenRotationLocked(): Promise\<boolean>;<br>旧版本信息:|类名:screen;<br>方法or属性:function isScreenRotationLocked(): Promise\<boolean>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 30|访问级别有变化|类名:screen;<br>方法or属性:function setScreenRotationLocked(isLocked: boolean, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:screen;<br>方法or属性:function setScreenRotationLocked(isLocked: boolean, callback: AsyncCallback\<void>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 31|访问级别有变化|类名:screen;<br>方法or属性:function setScreenRotationLocked(isLocked: boolean): Promise\<void>;<br>旧版本信息:|类名:screen;<br>方法or属性:function setScreenRotationLocked(isLocked: boolean): Promise\<void>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 32|访问级别有变化|类名:ExpandOption;<br>方法or属性:interface ExpandOption<br>旧版本信息:|类名:ExpandOption;<br>方法or属性:interface ExpandOption<br>新版本信息:systemapi|@ohos.screen.d.ts| 33|访问级别有变化|类名:ExpandOption;<br>方法or属性:screenId: number;<br>旧版本信息:|类名:ExpandOption;<br>方法or属性:screenId: number;<br>新版本信息:systemapi|@ohos.screen.d.ts| 34|访问级别有变化|类名:ExpandOption;<br>方法or属性:startX: number;<br>旧版本信息:|类名:ExpandOption;<br>方法or属性:startX: number;<br>新版本信息:systemapi|@ohos.screen.d.ts| 35|访问级别有变化|类名:ExpandOption;<br>方法or属性:startY: number;<br>旧版本信息:|类名:ExpandOption;<br>方法or属性:startY: number;<br>新版本信息:systemapi|@ohos.screen.d.ts| 36|访问级别有变化|类名:VirtualScreenOption;<br>方法or属性:interface VirtualScreenOption<br>旧版本信息:|类名:VirtualScreenOption;<br>方法or属性:interface VirtualScreenOption<br>新版本信息:systemapi|@ohos.screen.d.ts| 37|访问级别有变化|类名:VirtualScreenOption;<br>方法or属性:name: string;<br>旧版本信息:|类名:VirtualScreenOption;<br>方法or属性:name: string;<br>新版本信息:systemapi|@ohos.screen.d.ts| 38|访问级别有变化|类名:VirtualScreenOption;<br>方法or属性:width: number;<br>旧版本信息:|类名:VirtualScreenOption;<br>方法or属性:width: number;<br>新版本信息:systemapi|@ohos.screen.d.ts| 39|访问级别有变化|类名:VirtualScreenOption;<br>方法or属性:height: number;<br>旧版本信息:|类名:VirtualScreenOption;<br>方法or属性:height: number;<br>新版本信息:systemapi|@ohos.screen.d.ts| 40|访问级别有变化|类名:VirtualScreenOption;<br>方法or属性:density: number;<br>旧版本信息:|类名:VirtualScreenOption;<br>方法or属性:density: number;<br>新版本信息:systemapi|@ohos.screen.d.ts| 41|访问级别有变化|类名:VirtualScreenOption;<br>方法or属性:surfaceId: string;<br>旧版本信息:|类名:VirtualScreenOption;<br>方法or属性:surfaceId: string;<br>新版本信息:systemapi|@ohos.screen.d.ts| 42|访问级别有变化|类名:ScreenSourceMode;<br>方法or属性:enum ScreenSourceMode<br>旧版本信息:|类名:ScreenSourceMode;<br>方法or属性:enum ScreenSourceMode<br>新版本信息:systemapi|@ohos.screen.d.ts| 43|访问级别有变化|类名:ScreenSourceMode;<br>方法or属性:SCREEN_MAIN = 0<br>旧版本信息:|类名:ScreenSourceMode;<br>方法or属性:SCREEN_MAIN = 0<br>新版本信息:systemapi|@ohos.screen.d.ts| 44|访问级别有变化|类名:ScreenSourceMode;<br>方法or属性:SCREEN_MIRROR = 1<br>旧版本信息:|类名:ScreenSourceMode;<br>方法or属性:SCREEN_MIRROR = 1<br>新版本信息:systemapi|@ohos.screen.d.ts| 45|访问级别有变化|类名:ScreenSourceMode;<br>方法or属性:SCREEN_EXTEND = 2<br>旧版本信息:|类名:ScreenSourceMode;<br>方法or属性:SCREEN_EXTEND = 2<br>新版本信息:systemapi|@ohos.screen.d.ts| 46|访问级别有变化|类名:ScreenSourceMode;<br>方法or属性:SCREEN_ALONE = 3<br>旧版本信息:|类名:ScreenSourceMode;<br>方法or属性:SCREEN_ALONE = 3<br>新版本信息:systemapi|@ohos.screen.d.ts| 47|访问级别有变化|类名:Screen;<br>方法or属性:interface Screen<br>旧版本信息:|类名:Screen;<br>方法or属性:interface Screen<br>新版本信息:systemapi|@ohos.screen.d.ts| 48|访问级别有变化|类名:Screen;<br>方法or属性:readonly id: number;<br>旧版本信息:|类名:Screen;<br>方法or属性:readonly id: number;<br>新版本信息:systemapi|@ohos.screen.d.ts| 49|访问级别有变化|类名:Screen;<br>方法or属性:readonly parent: number;<br>旧版本信息:|类名:Screen;<br>方法or属性:readonly parent: number;<br>新版本信息:systemapi|@ohos.screen.d.ts| 50|访问级别有变化|类名:Screen;<br>方法or属性:readonly supportedModeInfo: Array\<ScreenModeInfo>;<br>旧版本信息:|类名:Screen;<br>方法or属性:readonly supportedModeInfo: Array\<ScreenModeInfo>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 51|访问级别有变化|类名:Screen;<br>方法or属性:readonly activeModeIndex: number;<br>旧版本信息:|类名:Screen;<br>方法or属性:readonly activeModeIndex: number;<br>新版本信息:systemapi|@ohos.screen.d.ts| 52|访问级别有变化|类名:Screen;<br>方法or属性:readonly orientation: Orientation;<br>旧版本信息:|类名:Screen;<br>方法or属性:readonly orientation: Orientation;<br>新版本信息:systemapi|@ohos.screen.d.ts| 53|访问级别有变化|类名:Screen;<br>方法or属性:readonly sourceMode: ScreenSourceMode;<br>旧版本信息:|类名:Screen;<br>方法or属性:readonly sourceMode: ScreenSourceMode;<br>新版本信息:systemapi|@ohos.screen.d.ts| 54|访问级别有变化|类名:Screen;<br>方法or属性:setOrientation(orientation: Orientation, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:Screen;<br>方法or属性:setOrientation(orientation: Orientation, callback: AsyncCallback\<void>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 55|访问级别有变化|类名:Screen;<br>方法or属性:setOrientation(orientation: Orientation): Promise\<void>;<br>旧版本信息:|类名:Screen;<br>方法or属性:setOrientation(orientation: Orientation): Promise\<void>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 56|访问级别有变化|类名:Screen;<br>方法or属性:setScreenActiveMode(modeIndex: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:Screen;<br>方法or属性:setScreenActiveMode(modeIndex: number, callback: AsyncCallback\<void>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 57|访问级别有变化|类名:Screen;<br>方法or属性:setScreenActiveMode(modeIndex: number): Promise\<void>;<br>旧版本信息:|类名:Screen;<br>方法or属性:setScreenActiveMode(modeIndex: number): Promise\<void>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 58|访问级别有变化|类名:Screen;<br>方法or属性:setDensityDpi(densityDpi: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:Screen;<br>方法or属性:setDensityDpi(densityDpi: number, callback: AsyncCallback\<void>): void;<br>新版本信息:systemapi|@ohos.screen.d.ts| 59|访问级别有变化|类名:Screen;<br>方法or属性:setDensityDpi(densityDpi: number): Promise\<void>;<br>旧版本信息:|类名:Screen;<br>方法or属性:setDensityDpi(densityDpi: number): Promise\<void>;<br>新版本信息:systemapi|@ohos.screen.d.ts| 60|访问级别有变化|类名:Orientation;<br>方法or属性:enum Orientation<br>旧版本信息:|类名:Orientation;<br>方法or属性:enum Orientation<br>新版本信息:systemapi|@ohos.screen.d.ts| 61|访问级别有变化|类名:ScreenModeInfo;<br>方法or属性:interface ScreenModeInfo<br>旧版本信息:|类名:ScreenModeInfo;<br>方法or属性:interface ScreenModeInfo<br>新版本信息:systemapi|@ohos.screen.d.ts| 62|权限有变化|类名:screen;<br>方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>旧版本信息:|类名:screen;<br>方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\<Screen>;<br>新版本信息:ohos.permission.CAPTURE_SCREEN|@ohos.screen.d.ts| 63|权限有变化|类名:screen;<br>方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>旧版本信息:|类名:screen;<br>方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\<void>;<br>新版本信息:ohos.permission.CAPTURE_SCREEN|@ohos.screen.d.ts| 64|函数有变化|类名:Window;<br>方法or属性:off(type: 'windowEvent',callback:Callback\<WindowEventType>):void;|类名:Window;<br>方法or属性:off(type:'windowEvent',callback?: Callback\<WindowEventType):void;|@ohos.window.d.ts| 65