Change Type Old Version New Version d.ts File
Added NA Class name: Window;
Method or attribute name: getUIContext() : UIContext;
@ohos.window.d.ts
Error code added Class name: screen;
Method or attribute name: function getAllScreens(): Promise<Array<Screen>>;
Old version information:
Class name: screen;
Method or attribute name: function getAllScreens(): Promise<Array<Screen>>;
New version information: 1400001
@ohos.screen.d.ts
Error code added Class name: screen;
Method or attribute name: function makeExpand(options: Array<ExpandOption>): Promise<number>;
Old version information:
Class name: screen;
Method or attribute name: function makeExpand(options: Array<ExpandOption>): Promise<number>;
New version information: 401,1400001
@ohos.screen.d.ts
Error code added Class name: screen;
Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array<number>): Promise<number>;
Old version information:
Class name: screen;
Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array<number>): Promise<number>;
New version information: 401,1400001
@ohos.screen.d.ts
Error code added Class name: screen;
Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise<Screen>;
Old version information:
Class name: screen;
Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise<Screen>;
New version information: 201,401,1400001
@ohos.screen.d.ts
Error code added Class name: screen;
Method or attribute name: function destroyVirtualScreen(screenId: number): Promise<void>;
Old version information:
Class name: screen;
Method or attribute name: function destroyVirtualScreen(screenId: number): Promise<void>;
New version information: 401,1400002
@ohos.screen.d.ts
Error code added Class name: screen;
Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise<void>;
Old version information:
Class name: screen;
Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise<void>;
New version information: 201,401,1400001
@ohos.screen.d.ts
Error code added Class name: screen;
Method or attribute name: function setScreenRotationLocked(isLocked: boolean): Promise<void>;
Old version information:
Class name: screen;
Method or attribute name: function setScreenRotationLocked(isLocked: boolean): Promise<void>;
New version information: 401
@ohos.screen.d.ts
Error code added Class name: Screen;
Method or attribute name: setOrientation(orientation: Orientation): Promise<void>;
Old version information:
Class name: Screen;
Method or attribute name: setOrientation(orientation: Orientation): Promise<void>;
New version information: 401,1400003
@ohos.screen.d.ts
Error code added Class name: Screen;
Method or attribute name: setScreenActiveMode(modeIndex: number): Promise<void>;
Old version information:
Class name: Screen;
Method or attribute name: setScreenActiveMode(modeIndex: number): Promise<void>;
New version information: 401,1400003
@ohos.screen.d.ts
Error code added Class name: Screen;
Method or attribute name: setDensityDpi(densityDpi: number): Promise<void>;
Old version information:
Class name: Screen;
Method or attribute name: setDensityDpi(densityDpi: number): Promise<void>;
New version information: 401,1400003
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function getAllScreens(callback: AsyncCallback<Array<Screen>>): void;
Old version information:
Class name: screen;
Method or attribute name: function getAllScreens(callback: AsyncCallback<Array<Screen>>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function getAllScreens(): Promise<Array<Screen>>;
Old version information:
Class name: screen;
Method or attribute name: function getAllScreens(): Promise<Array<Screen>>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function on(eventType: 'connect' | 'disconnect' | 'change', callback: Callback<number>): void;
Old version information:
Class name: screen;
Method or attribute name: function on(eventType: 'connect' | 'disconnect' | 'change', callback: Callback<number>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function off(eventType: 'connect' | 'disconnect' | 'change', callback?: Callback<number>): void;
Old version information:
Class name: screen;
Method or attribute name: function off(eventType: 'connect' | 'disconnect' | 'change', callback?: Callback<number>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function makeExpand(options: Array<ExpandOption>, callback: AsyncCallback<number>): void;
Old version information:
Class name: screen;
Method or attribute name: function makeExpand(options: Array<ExpandOption>, callback: AsyncCallback<number>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function makeExpand(options: Array<ExpandOption>): Promise<number>;
Old version information:
Class name: screen;
Method or attribute name: function makeExpand(options: Array<ExpandOption>): Promise<number>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array<number>, callback: AsyncCallback<number>): void;
Old version information:
Class name: screen;
Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array<number>, callback: AsyncCallback<number>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array<number>): Promise<number>;
Old version information:
Class name: screen;
Method or attribute name: function makeMirror(mainScreen: number, mirrorScreen: Array<number>): Promise<number>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function createVirtualScreen(options: VirtualScreenOption, callback: AsyncCallback<Screen>): void;
Old version information:
Class name: screen;
Method or attribute name: function createVirtualScreen(options: VirtualScreenOption, callback: AsyncCallback<Screen>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise<Screen>;
Old version information:
Class name: screen;
Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise<Screen>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function destroyVirtualScreen(screenId: number, callback: AsyncCallback<void>): void;
Old version information:
Class name: screen;
Method or attribute name: function destroyVirtualScreen(screenId: number, callback: AsyncCallback<void>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function destroyVirtualScreen(screenId: number): Promise<void>;
Old version information:
Class name: screen;
Method or attribute name: function destroyVirtualScreen(screenId: number): Promise<void>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string, callback: AsyncCallback<void>): void;
Old version information:
Class name: screen;
Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string, callback: AsyncCallback<void>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise<void>;
Old version information:
Class name: screen;
Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise<void>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function isScreenRotationLocked(callback: AsyncCallback<boolean>): void;
Old version information:
Class name: screen;
Method or attribute name: function isScreenRotationLocked(callback: AsyncCallback<boolean>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function isScreenRotationLocked(): Promise<boolean>;
Old version information:
Class name: screen;
Method or attribute name: function isScreenRotationLocked(): Promise<boolean>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function setScreenRotationLocked(isLocked: boolean, callback: AsyncCallback<void>): void;
Old version information:
Class name: screen;
Method or attribute name: function setScreenRotationLocked(isLocked: boolean, callback: AsyncCallback<void>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: screen;
Method or attribute name: function setScreenRotationLocked(isLocked: boolean): Promise<void>;
Old version information:
Class name: screen;
Method or attribute name: function setScreenRotationLocked(isLocked: boolean): Promise<void>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: ExpandOption;
Method or attribute name: interface ExpandOption
Old version information:
Class name: ExpandOption;
Method or attribute name: interface ExpandOption
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: ExpandOption;
Method or attribute name: screenId: number;
Old version information:
Class name: ExpandOption;
Method or attribute name: screenId: number;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: ExpandOption;
Method or attribute name: startX: number;
Old version information:
Class name: ExpandOption;
Method or attribute name: startX: number;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: ExpandOption;
Method or attribute name: startY: number;
Old version information:
Class name: ExpandOption;
Method or attribute name: startY: number;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: VirtualScreenOption;
Method or attribute name: interface VirtualScreenOption
Old version information:
Class name: VirtualScreenOption;
Method or attribute name: interface VirtualScreenOption
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: VirtualScreenOption;
Method or attribute name: name: string;
Old version information:
Class name: VirtualScreenOption;
Method or attribute name: name: string;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: VirtualScreenOption;
Method or attribute name: width: number;
Old version information:
Class name: VirtualScreenOption;
Method or attribute name: width: number;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: VirtualScreenOption;
Method or attribute name: height: number;
Old version information:
Class name: VirtualScreenOption;
Method or attribute name: height: number;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: VirtualScreenOption;
Method or attribute name: density: number;
Old version information:
Class name: VirtualScreenOption;
Method or attribute name: density: number;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: VirtualScreenOption;
Method or attribute name: surfaceId: string;
Old version information:
Class name: VirtualScreenOption;
Method or attribute name: surfaceId: string;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: ScreenSourceMode;
Method or attribute name: enum ScreenSourceMode
Old version information:
Class name: ScreenSourceMode;
Method or attribute name: enum ScreenSourceMode
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: ScreenSourceMode;
Method or attribute name: SCREEN_MAIN = 0
Old version information:
Class name: ScreenSourceMode;
Method or attribute name: SCREEN_MAIN = 0
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: ScreenSourceMode;
Method or attribute name: SCREEN_MIRROR = 1
Old version information:
Class name: ScreenSourceMode;
Method or attribute name: SCREEN_MIRROR = 1
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: ScreenSourceMode;
Method or attribute name: SCREEN_EXTEND = 2
Old version information:
Class name: ScreenSourceMode;
Method or attribute name: SCREEN_EXTEND = 2
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: ScreenSourceMode;
Method or attribute name: SCREEN_ALONE = 3
Old version information:
Class name: ScreenSourceMode;
Method or attribute name: SCREEN_ALONE = 3
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: interface Screen
Old version information:
Class name: Screen;
Method or attribute name: interface Screen
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: readonly id: number;
Old version information:
Class name: Screen;
Method or attribute name: readonly id: number;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: readonly parent: number;
Old version information:
Class name: Screen;
Method or attribute name: readonly parent: number;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: readonly supportedModeInfo: Array<ScreenModeInfo>;
Old version information:
Class name: Screen;
Method or attribute name: readonly supportedModeInfo: Array<ScreenModeInfo>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: readonly activeModeIndex: number;
Old version information:
Class name: Screen;
Method or attribute name: readonly activeModeIndex: number;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: readonly orientation: Orientation;
Old version information:
Class name: Screen;
Method or attribute name: readonly orientation: Orientation;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: readonly sourceMode: ScreenSourceMode;
Old version information:
Class name: Screen;
Method or attribute name: readonly sourceMode: ScreenSourceMode;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: setOrientation(orientation: Orientation, callback: AsyncCallback<void>): void;
Old version information:
Class name: Screen;
Method or attribute name: setOrientation(orientation: Orientation, callback: AsyncCallback<void>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: setOrientation(orientation: Orientation): Promise<void>;
Old version information:
Class name: Screen;
Method or attribute name: setOrientation(orientation: Orientation): Promise<void>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: setScreenActiveMode(modeIndex: number, callback: AsyncCallback<void>): void;
Old version information:
Class name: Screen;
Method or attribute name: setScreenActiveMode(modeIndex: number, callback: AsyncCallback<void>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: setScreenActiveMode(modeIndex: number): Promise<void>;
Old version information:
Class name: Screen;
Method or attribute name: setScreenActiveMode(modeIndex: number): Promise<void>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: setDensityDpi(densityDpi: number, callback: AsyncCallback<void>): void;
Old version information:
Class name: Screen;
Method or attribute name: setDensityDpi(densityDpi: number, callback: AsyncCallback<void>): void;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Screen;
Method or attribute name: setDensityDpi(densityDpi: number): Promise<void>;
Old version information:
Class name: Screen;
Method or attribute name: setDensityDpi(densityDpi: number): Promise<void>;
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: Orientation;
Method or attribute name: enum Orientation
Old version information:
Class name: Orientation;
Method or attribute name: enum Orientation
New version information: systemapi
@ohos.screen.d.ts
Access level changed Class name: ScreenModeInfo;
Method or attribute name: interface ScreenModeInfo
Old version information:
Class name: ScreenModeInfo;
Method or attribute name: interface ScreenModeInfo
New version information: systemapi
@ohos.screen.d.ts
Permission changed Class name: screen;
Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise<Screen>;
Old version information:
Class name: screen;
Method or attribute name: function createVirtualScreen(options: VirtualScreenOption): Promise<Screen>;
New version information: ohos.permission.CAPTURE_SCREEN
@ohos.screen.d.ts
Permission changed Class name: screen;
Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise<void>;
Old version information:
Class name: screen;
Method or attribute name: function setVirtualScreenSurface(screenId: number, surfaceId: string): Promise<void>;
New version information: ohos.permission.CAPTURE_SCREEN
@ohos.screen.d.ts
Function changed Class name: Window;
Method or attribute name: off(type: 'windowEvent',callback:Callback<WindowEventType>):void;
Class name: Window;
Method or attribute name: off(type:'windowEvent',callback?: Callback<WindowEventType):void;
@ohos.window.d.ts