| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | |新增|NA|类名:Window;
方法or属性:getUIContext() : UIContext;|@ohos.window.d.ts| |新增(错误码)|类名:screen;
方法or属性:function getAllScreens(): Promise\>;
旧版本信息:|类名:screen;
方法or属性:function getAllScreens(): Promise\>;
新版本信息:1400001|@ohos.screen.d.ts| |新增(错误码)|类名:screen;
方法or属性:function makeExpand(options: Array\): Promise\;
旧版本信息:|类名:screen;
方法or属性:function makeExpand(options: Array\): Promise\;
新版本信息:401,1400001|@ohos.screen.d.ts| |新增(错误码)|类名:screen;
方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\): Promise\;
旧版本信息:|类名:screen;
方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\): Promise\;
新版本信息:401,1400001|@ohos.screen.d.ts| |新增(错误码)|类名:screen;
方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\;
旧版本信息:|类名:screen;
方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\;
新版本信息:201,401,1400001|@ohos.screen.d.ts| |新增(错误码)|类名:screen;
方法or属性:function destroyVirtualScreen(screenId: number): Promise\;
旧版本信息:|类名:screen;
方法or属性:function destroyVirtualScreen(screenId: number): Promise\;
新版本信息:401,1400002|@ohos.screen.d.ts| |新增(错误码)|类名:screen;
方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\;
旧版本信息:|类名:screen;
方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\;
新版本信息:201,401,1400001|@ohos.screen.d.ts| |新增(错误码)|类名:screen;
方法or属性:function setScreenRotationLocked(isLocked: boolean): Promise\;
旧版本信息:|类名:screen;
方法or属性:function setScreenRotationLocked(isLocked: boolean): Promise\;
新版本信息:401|@ohos.screen.d.ts| |新增(错误码)|类名:Screen;
方法or属性:setOrientation(orientation: Orientation): Promise\;
旧版本信息:|类名:Screen;
方法or属性:setOrientation(orientation: Orientation): Promise\;
新版本信息:401,1400003|@ohos.screen.d.ts| |新增(错误码)|类名:Screen;
方法or属性:setScreenActiveMode(modeIndex: number): Promise\;
旧版本信息:|类名:Screen;
方法or属性:setScreenActiveMode(modeIndex: number): Promise\;
新版本信息:401,1400003|@ohos.screen.d.ts| |新增(错误码)|类名:Screen;
方法or属性:setDensityDpi(densityDpi: number): Promise\;
旧版本信息:|类名:Screen;
方法or属性:setDensityDpi(densityDpi: number): Promise\;
新版本信息:401,1400003|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function getAllScreens(callback: AsyncCallback\>): void;
旧版本信息:|类名:screen;
方法or属性:function getAllScreens(callback: AsyncCallback\>): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function getAllScreens(): Promise\>;
旧版本信息:|类名:screen;
方法or属性:function getAllScreens(): Promise\>;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback\): void;
旧版本信息:|类名:screen;
方法or属性:function on(eventType: 'connect' \| 'disconnect' \| 'change', callback: Callback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback\): void;
旧版本信息:|类名:screen;
方法or属性:function off(eventType: 'connect' \| 'disconnect' \| 'change', callback?: Callback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function makeExpand(options: Array\, callback: AsyncCallback\): void;
旧版本信息:|类名:screen;
方法or属性:function makeExpand(options: Array\, callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function makeExpand(options: Array\): Promise\;
旧版本信息:|类名:screen;
方法or属性:function makeExpand(options: Array\): Promise\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\, callback: AsyncCallback\): void;
旧版本信息:|类名:screen;
方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\, callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\): Promise\;
旧版本信息:|类名:screen;
方法or属性:function makeMirror(mainScreen: number, mirrorScreen: Array\): Promise\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function createVirtualScreen(options: VirtualScreenOption, callback: AsyncCallback\): void;
旧版本信息:|类名:screen;
方法or属性:function createVirtualScreen(options: VirtualScreenOption, callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\;
旧版本信息:|类名:screen;
方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function destroyVirtualScreen(screenId: number, callback: AsyncCallback\): void;
旧版本信息:|类名:screen;
方法or属性:function destroyVirtualScreen(screenId: number, callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function destroyVirtualScreen(screenId: number): Promise\;
旧版本信息:|类名:screen;
方法or属性:function destroyVirtualScreen(screenId: number): Promise\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string, callback: AsyncCallback\): void;
旧版本信息:|类名:screen;
方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string, callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\;
旧版本信息:|类名:screen;
方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function isScreenRotationLocked(callback: AsyncCallback\): void;
旧版本信息:|类名:screen;
方法or属性:function isScreenRotationLocked(callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function isScreenRotationLocked(): Promise\;
旧版本信息:|类名:screen;
方法or属性:function isScreenRotationLocked(): Promise\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function setScreenRotationLocked(isLocked: boolean, callback: AsyncCallback\): void;
旧版本信息:|类名:screen;
方法or属性:function setScreenRotationLocked(isLocked: boolean, callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:screen;
方法or属性:function setScreenRotationLocked(isLocked: boolean): Promise\;
旧版本信息:|类名:screen;
方法or属性:function setScreenRotationLocked(isLocked: boolean): Promise\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:ExpandOption;
方法or属性:interface ExpandOption
旧版本信息:|类名:ExpandOption;
方法or属性:interface ExpandOption
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:ExpandOption;
方法or属性:screenId: number;
旧版本信息:|类名:ExpandOption;
方法or属性:screenId: number;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:ExpandOption;
方法or属性:startX: number;
旧版本信息:|类名:ExpandOption;
方法or属性:startX: number;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:ExpandOption;
方法or属性:startY: number;
旧版本信息:|类名:ExpandOption;
方法or属性:startY: number;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:VirtualScreenOption;
方法or属性:interface VirtualScreenOption
旧版本信息:|类名:VirtualScreenOption;
方法or属性:interface VirtualScreenOption
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:VirtualScreenOption;
方法or属性:name: string;
旧版本信息:|类名:VirtualScreenOption;
方法or属性:name: string;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:VirtualScreenOption;
方法or属性:width: number;
旧版本信息:|类名:VirtualScreenOption;
方法or属性:width: number;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:VirtualScreenOption;
方法or属性:height: number;
旧版本信息:|类名:VirtualScreenOption;
方法or属性:height: number;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:VirtualScreenOption;
方法or属性:density: number;
旧版本信息:|类名:VirtualScreenOption;
方法or属性:density: number;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:VirtualScreenOption;
方法or属性:surfaceId: string;
旧版本信息:|类名:VirtualScreenOption;
方法or属性:surfaceId: string;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:ScreenSourceMode;
方法or属性:enum ScreenSourceMode
旧版本信息:|类名:ScreenSourceMode;
方法or属性:enum ScreenSourceMode
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:ScreenSourceMode;
方法or属性:SCREEN_MAIN = 0
旧版本信息:|类名:ScreenSourceMode;
方法or属性:SCREEN_MAIN = 0
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:ScreenSourceMode;
方法or属性:SCREEN_MIRROR = 1
旧版本信息:|类名:ScreenSourceMode;
方法or属性:SCREEN_MIRROR = 1
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:ScreenSourceMode;
方法or属性:SCREEN_EXTEND = 2
旧版本信息:|类名:ScreenSourceMode;
方法or属性:SCREEN_EXTEND = 2
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:ScreenSourceMode;
方法or属性:SCREEN_ALONE = 3
旧版本信息:|类名:ScreenSourceMode;
方法or属性:SCREEN_ALONE = 3
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:interface Screen
旧版本信息:|类名:Screen;
方法or属性:interface Screen
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:readonly id: number;
旧版本信息:|类名:Screen;
方法or属性:readonly id: number;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:readonly parent: number;
旧版本信息:|类名:Screen;
方法or属性:readonly parent: number;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:readonly supportedModeInfo: Array\;
旧版本信息:|类名:Screen;
方法or属性:readonly supportedModeInfo: Array\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:readonly activeModeIndex: number;
旧版本信息:|类名:Screen;
方法or属性:readonly activeModeIndex: number;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:readonly orientation: Orientation;
旧版本信息:|类名:Screen;
方法or属性:readonly orientation: Orientation;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:readonly sourceMode: ScreenSourceMode;
旧版本信息:|类名:Screen;
方法or属性:readonly sourceMode: ScreenSourceMode;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:setOrientation(orientation: Orientation, callback: AsyncCallback\): void;
旧版本信息:|类名:Screen;
方法or属性:setOrientation(orientation: Orientation, callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:setOrientation(orientation: Orientation): Promise\;
旧版本信息:|类名:Screen;
方法or属性:setOrientation(orientation: Orientation): Promise\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:setScreenActiveMode(modeIndex: number, callback: AsyncCallback\): void;
旧版本信息:|类名:Screen;
方法or属性:setScreenActiveMode(modeIndex: number, callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:setScreenActiveMode(modeIndex: number): Promise\;
旧版本信息:|类名:Screen;
方法or属性:setScreenActiveMode(modeIndex: number): Promise\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:setDensityDpi(densityDpi: number, callback: AsyncCallback\): void;
旧版本信息:|类名:Screen;
方法or属性:setDensityDpi(densityDpi: number, callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Screen;
方法or属性:setDensityDpi(densityDpi: number): Promise\;
旧版本信息:|类名:Screen;
方法or属性:setDensityDpi(densityDpi: number): Promise\;
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:Orientation;
方法or属性:enum Orientation
旧版本信息:|类名:Orientation;
方法or属性:enum Orientation
新版本信息:systemapi|@ohos.screen.d.ts| |访问级别有变化|类名:ScreenModeInfo;
方法or属性:interface ScreenModeInfo
旧版本信息:|类名:ScreenModeInfo;
方法or属性:interface ScreenModeInfo
新版本信息:systemapi|@ohos.screen.d.ts| |权限有变化|类名:screen;
方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\;
旧版本信息:|类名:screen;
方法or属性:function createVirtualScreen(options: VirtualScreenOption): Promise\;
新版本信息:ohos.permission.CAPTURE_SCREEN|@ohos.screen.d.ts| |权限有变化|类名:screen;
方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\;
旧版本信息:|类名:screen;
方法or属性:function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise\;
新版本信息:ohos.permission.CAPTURE_SCREEN|@ohos.screen.d.ts| |函数有变化|类名:Window;
方法or属性:off(type: 'windowEvent',callback:Callback\):void;|类名:Window;
方法or属性:off(type:'windowEvent',callback?: Callback\