1| 操作 | 旧版本 | 新版本 | d.ts文件 |
2| ---- | ------ | ------ | -------- |
3|删除|类名:InputMethodSetting;<br>方法or属性:on(type: 'imeShow' \| 'imeHide', callback: (info: Array\<InputWindowInfo>) => void): void;|NA|@ohos.inputMethod.d.ts|
4|删除|类名:InputMethodSetting;<br>方法or属性:off(type: 'imeShow' \| 'imeHide', callback?: (info: Array\<InputWindowInfo>) => void): void;|NA|@ohos.inputMethod.d.ts|
5|删除|类名:InputMethodController;<br>方法or属性:on(type: 'deleteLeft' \| 'deleteRight', callback: (length: number) => void): void;|NA|@ohos.inputMethod.d.ts|
6|删除|类名:InputMethodController;<br>方法or属性:on(type: 'sendKeyboardStatus', callback: (keyBoardStatus: KeyboardStatus) => void): void;|NA|@ohos.inputMethod.d.ts|
7|删除|类名:InputMethodController;<br>方法or属性:off(type: 'selectByRange'): void;|NA|@ohos.inputMethod.d.ts|
8|删除|类名:InputMethodController;<br>方法or属性:off(type: 'selectByMovement'): void;|NA|@ohos.inputMethod.d.ts|
9|删除|类名:InputMethodController;<br>方法or属性:off(type: 'insertText'): void;|NA|@ohos.inputMethod.d.ts|
10|删除|类名:InputMethodController;<br>方法or属性:off(type: 'deleteLeft' \| 'deleteRight'): void;|NA|@ohos.inputMethod.d.ts|
11|删除|类名:InputMethodController;<br>方法or属性:off(type: 'sendKeyboardStatus'): void;|NA|@ohos.inputMethod.d.ts|
12|删除|类名:InputMethodController;<br>方法or属性:off(type: 'sendFunctionKey'): void;|NA|@ohos.inputMethod.d.ts|
13|删除|类名:InputMethodController;<br>方法or属性:off(type: 'moveCursor'): void;|NA|@ohos.inputMethod.d.ts|
14|删除|类名:InputMethodController;<br>方法or属性:off(type: 'handleExtendAction'): void;|NA|@ohos.inputMethod.d.ts|
15|新增|NA|类名:InputMethodSetting;<br>方法or属性:on(type: 'imeShow', callback: (info: Array\<InputWindowInfo>) => void): void;|@ohos.inputMethod.d.ts|
16|新增|NA|类名:InputMethodSetting;<br>方法or属性:on(type: 'imeHide', callback: (info: Array\<InputWindowInfo>) => void): void;|@ohos.inputMethod.d.ts|
17|新增|NA|类名:InputMethodSetting;<br>方法or属性:off(type: 'imeShow', callback?: (info: Array\<InputWindowInfo>) => void): void;|@ohos.inputMethod.d.ts|
18|新增|NA|类名:InputMethodSetting;<br>方法or属性:off(type: 'imeHide', callback?: (info: Array\<InputWindowInfo>) => void): void;|@ohos.inputMethod.d.ts|
19|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'deleteLeft', callback: (length: number) => void): void;|@ohos.inputMethod.d.ts|
20|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'deleteRight', callback: (length: number) => void): void;|@ohos.inputMethod.d.ts|
21|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'sendKeyboardStatus', callback: (keyboardStatus: KeyboardStatus) => void): void;|@ohos.inputMethod.d.ts|
22|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'getLeftTextOfCursor', callback: (length: number) => string): void;|@ohos.inputMethod.d.ts|
23|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'getRightTextOfCursor', callback: (length: number) => string): void;|@ohos.inputMethod.d.ts|
24|新增|NA|类名:InputMethodController;<br>方法or属性:on(type: 'getTextIndexAtCursor', callback: () => number): void;|@ohos.inputMethod.d.ts|
25|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'selectByRange', callback?: Callback\<Range>): void;|@ohos.inputMethod.d.ts|
26|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'selectByMovement', callback?: Callback\<Movement>): void;|@ohos.inputMethod.d.ts|
27|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'insertText', callback?: (text: string) => void): void;|@ohos.inputMethod.d.ts|
28|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'deleteLeft', callback?: (length: number) => void): void;|@ohos.inputMethod.d.ts|
29|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'deleteRight', callback?: (length: number) => void): void;|@ohos.inputMethod.d.ts|
30|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'sendKeyboardStatus', callback?: (keyboardStatus: KeyboardStatus) => void): void;|@ohos.inputMethod.d.ts|
31|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'sendFunctionKey', callback?: (functionKey: FunctionKey) => void): void;|@ohos.inputMethod.d.ts|
32|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'moveCursor', callback?: (direction: Direction) => void): void;|@ohos.inputMethod.d.ts|
33|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'handleExtendAction', callback?: (action: ExtendAction) => void): void;|@ohos.inputMethod.d.ts|
34|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'getLeftTextOfCursor', callback?: (length: number) => string): void;|@ohos.inputMethod.d.ts|
35|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'getRightTextOfCursor', callback?: (length: number) => string): void;|@ohos.inputMethod.d.ts|
36|新增|NA|类名:InputMethodController;<br>方法or属性:off(type: 'getTextIndexAtCursor', callback?: () => number): void;|@ohos.inputMethod.d.ts|
37|新增|NA|类名:TextConfig;<br>方法or属性:cursorInfo?: CursorInfo;|@ohos.inputMethod.d.ts|
38|新增|NA|类名:TextConfig;<br>方法or属性:selection?: Range;|@ohos.inputMethod.d.ts|
39|新增|NA|类名:TextConfig;<br>方法or属性:windowId?: number;|@ohos.inputMethod.d.ts|
40|新增|NA|类名:KeyboardDelegate;<br>方法or属性:on(type: 'keyEvent', callback: (event: InputKeyEvent) => boolean): void;|@ohos.inputMethodEngine.d.ts|
41|新增|NA|类名:KeyboardDelegate;<br>方法or属性:on(type: 'editorAttributeChanged', callback: (attr: EditorAttribute) => void): void;|@ohos.inputMethodEngine.d.ts|
42|新增|NA|类名:KeyboardDelegate;<br>方法or属性:off(type: 'keyEvent', callback?: (event: InputKeyEvent) => boolean): void;|@ohos.inputMethodEngine.d.ts|
43|新增|NA|类名:KeyboardDelegate;<br>方法or属性:off(type: 'editorAttributeChanged', callback?: (attr: EditorAttribute) => void): void;|@ohos.inputMethodEngine.d.ts|
44|新增|NA|类名:wallpaper;<br>方法or属性:function setCustomWallpaper(source: string, wallpaperType: WallpaperType, callback: AsyncCallback\<void>): void;|@ohos.wallpaper.d.ts|
45|新增|NA|类名:wallpaper;<br>方法or属性:function setCustomWallpaper(source: string, wallpaperType: WallpaperType): Promise\<void>;|@ohos.wallpaper.d.ts|
46|新增|NA|类名:WallpaperExtensionAbility;<br>方法or属性:onCreate(want: object): void;|@ohos.WallpaperExtensionAbility.d.ts|
47|新增|NA|类名:WallpaperExtensionAbility;<br>方法or属性:onWallpaperChange(wallpaperType: number): void;|@ohos.WallpaperExtensionAbility.d.ts|
48|新增|NA|类名:WallpaperExtensionAbility;<br>方法or属性:onDestroy(): void;|@ohos.WallpaperExtensionAbility.d.ts|
49|错误码有变化|类名:wallpaper;<br>方法or属性:function off(<br><br>    type: 'wallpaperChange',<br><br>    callback?: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType, uri?: string) => void<br><br>  ): void;<br>旧版本信息:202|类名:wallpaper;<br>方法or属性:function off(<br><br>    type: 'wallpaperChange',<br><br>    callback?: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType, uri?: string) => void<br><br>  ): void;<br>新版本信息:401,202|@ohos.wallpaper.d.ts|
50|type有变化|类名:InputMethodProperty;<br>方法or属性:readonly labelId?: number;<br>旧版本信息:|类名:InputMethodProperty;<br>方法or属性:readonly labelId?: number;<br>新版本信息:?number|@ohos.inputMethod.d.ts|
51|type有变化|类名:InputMethodProperty;<br>方法or属性:readonly iconId?: number;<br>旧版本信息:|类名:InputMethodProperty;<br>方法or属性:readonly iconId?: number;<br>新版本信息:?number|@ohos.inputMethod.d.ts|
52|type有变化|类名:Movement;<br>方法or属性:direction: Direction;<br>旧版本信息:number|类名:Movement;<br>方法or属性:direction: Direction;<br>新版本信息:Direction|@ohos.inputMethod.d.ts|
53|type有变化|类名:TextConfig;<br>方法or属性:inputAttribute: InputAttribute;<br>旧版本信息:|类名:TextConfig;<br>方法or属性:inputAttribute: InputAttribute;<br>新版本信息:InputAttribute|@ohos.inputMethod.d.ts|
54|type有变化|类名:Movement;<br>方法or属性:direction: Direction;<br>旧版本信息:number|类名:Movement;<br>方法or属性:direction: Direction;<br>新版本信息:Direction|@ohos.inputMethodEngine.d.ts|
55|type有变化|类名:InputMethodSubtype;<br>方法or属性:readonly labelId?: number;<br>旧版本信息:|类名:InputMethodSubtype;<br>方法or属性:readonly labelId?: number;<br>新版本信息:?number|@ohos.InputMethodSubtype.d.ts|
56|函数有变化|类名:Panel;<br>方法or属性:on(type: 'show' \| 'hide', callback: () => void): void;|类名:Panel;<br>方法or属性:on(type: 'show', callback: () => void): void;|@ohos.inputMethodEngine.d.ts|
57|函数有变化|类名:Panel;<br>方法or属性:on(type: 'show' \| 'hide', callback: () => void): void;|类名:Panel;<br>方法or属性:on(type: 'hide', callback: () => void): void;|@ohos.inputMethodEngine.d.ts|
58|函数有变化|类名:Panel;<br>方法or属性:off(type: 'show' \| 'hide', callback?: () => void): void;|类名:Panel;<br>方法or属性:off(type: 'show', callback?: () => void): void;|@ohos.inputMethodEngine.d.ts|
59|函数有变化|类名:Panel;<br>方法or属性:off(type: 'show' \| 'hide', callback?: () => void): void;|类名:Panel;<br>方法or属性:off(type: 'hide', callback?: () => void): void;|@ohos.inputMethodEngine.d.ts|
60|函数有变化|类名:wallpaper;<br>方法or属性:function on(<br><br>    type: 'wallpaperChange',<br><br>    callback: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType) => void<br><br>  ): void;|类名:wallpaper;<br>方法or属性:function on(<br><br>    type: 'wallpaperChange',<br><br>    callback: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType, uri?: string) => void<br><br>  ): void;|@ohos.wallpaper.d.ts|
61|函数有变化|类名:wallpaper;<br>方法or属性:function off(<br><br>    type: 'wallpaperChange',<br><br>    callback?: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType) => void<br><br>  ): void;|类名:wallpaper;<br>方法or属性:function off(<br><br>    type: 'wallpaperChange',<br><br>    callback?: (wallpaperType: WallpaperType, resourceType: WallpaperResourceType, uri?: string) => void<br><br>  ): void;|@ohos.wallpaper.d.ts|
62