| 操作 | 旧版本 | 新版本 | d.ts文件 |
|---|---|---|---|
| 新增 | NA | 类名:InputClient; 方法or属性:deleteForwardSync(length: number): void; | @ohos.inputMethodEngine.d.ts |
| 新增 | NA | 类名:InputClient; 方法or属性:deleteBackwardSync(length: number): void; | @ohos.inputMethodEngine.d.ts |
| 新增 | NA | 类名:InputClient; 方法or属性:insertTextSync(text: string): void; | @ohos.inputMethodEngine.d.ts |
| 新增 | NA | 类名:InputClient; 方法or属性:getForwardSync(length: number): string; | @ohos.inputMethodEngine.d.ts |
| 新增 | NA | 类名:InputClient; 方法or属性:getBackwardSync(length: number): string; | @ohos.inputMethodEngine.d.ts |
| 新增 | NA | 类名:InputClient; 方法or属性:getEditorAttributeSync(): EditorAttribute; | @ohos.inputMethodEngine.d.ts |
| 新增 | NA | 类名:InputClient; 方法or属性:moveCursorSync(direction: number): void; | @ohos.inputMethodEngine.d.ts |
| 新增 | NA | 类名:InputClient; 方法or属性:selectByRangeSync(range: Range): void; | @ohos.inputMethodEngine.d.ts |
| 新增 | NA | 类名:InputClient; 方法or属性:selectByMovementSync(movement: Movement): void; | @ohos.inputMethodEngine.d.ts |
| 新增 | NA | 类名:InputClient; 方法or属性:getTextIndexAtCursorSync(): number; | @ohos.inputMethodEngine.d.ts |
| 新增 | NA | 类名:systemDateTime; 方法or属性:function getTime(isNanoseconds?: boolean): number; | @ohos.systemDateTime.d.ts |
| 新增 | NA | 类名:systemDateTime; 方法or属性:function getUptime(timeType: TimeType, isNanoseconds?: boolean): number; | @ohos.systemDateTime.d.ts |
| 新增 | NA | 类名:systemDateTime; 方法or属性:function getTimezoneSync(): string; | @ohos.systemDateTime.d.ts |
| 新增 | NA | 类名:TimeType; 方法or属性:STARTUP | @ohos.systemDateTime.d.ts |
| 新增 | NA | 类名:TimeType; 方法or属性:ACTIVE | @ohos.systemDateTime.d.ts |
| 废弃版本有变化 | 类名:PasteDataRecord; 方法or属性:convertToText(): Promise<string>; 旧版本信息: | 类名:PasteDataRecord; 方法or属性:convertToText(): Promise<string>; 新版本信息:9 代替接口: ohos.pasteboard.pasteboard#convertToTextV9 | @ohos.pasteboard.d.ts |
| 废弃版本有变化 | 类名:SystemPasteboard; 方法or属性:clear(): Promise<void>; 旧版本信息: | 类名:SystemPasteboard; 方法or属性:clear(): Promise<void>; 新版本信息:9 代替接口: ohos.pasteboard.pasteboard#clearData | @ohos.pasteboard.d.ts |
| 废弃版本有变化 | 类名:SystemPasteboard; 方法or属性:getPasteData(): Promise<PasteData>; 旧版本信息: | 类名:SystemPasteboard; 方法or属性:getPasteData(): Promise<PasteData>; 新版本信息:9 代替接口: ohos.pasteboard.pasteboard#getData | @ohos.pasteboard.d.ts |
| 废弃版本有变化 | 类名:SystemPasteboard; 方法or属性:hasPasteData(): Promise<boolean>; 旧版本信息: | 类名:SystemPasteboard; 方法or属性:hasPasteData(): Promise<boolean>; 新版本信息:9 代替接口: ohos.pasteboard.pasteboard#hasData | @ohos.pasteboard.d.ts |
| 废弃版本有变化 | 类名:SystemPasteboard; 方法or属性:setPasteData(data: PasteData): Promise<void>; 旧版本信息: | 类名:SystemPasteboard; 方法or属性:setPasteData(data: PasteData): Promise<void>; 新版本信息:9 代替接口: ohos.pasteboard.pasteboard#setData | @ohos.pasteboard.d.ts |
| 废弃版本有变化 | 类名:systemDateTime; 方法or属性:function setDate(date: Date, callback: AsyncCallback<void>): void; 旧版本信息: | 类名:systemDateTime; 方法or属性:function setDate(date: Date, callback: AsyncCallback<void>): void; 新版本信息:10 代替接口: systemDateTime.setTime | @ohos.systemDateTime.d.ts |
| 废弃版本有变化 | 类名:systemDateTime; 方法or属性:function setDate(date: Date): Promise<void>; 旧版本信息: | 类名:systemDateTime; 方法or属性:function setDate(date: Date): Promise<void>; 新版本信息:10 代替接口: systemDateTime.setTime | @ohos.systemDateTime.d.ts |
| 废弃版本有变化 | 类名:systemDateTime; 方法or属性:function getDate(callback: AsyncCallback<Date>): void; 旧版本信息: | 类名:systemDateTime; 方法or属性:function getDate(callback: AsyncCallback<Date>): void; 新版本信息:10 代替接口: new | @ohos.systemDateTime.d.ts |
| 废弃版本有变化 | 类名:systemDateTime; 方法or属性:function getDate(): Promise<Date>; 旧版本信息: | 类名:systemDateTime; 方法or属性:function getDate(): Promise<Date>; 新版本信息:10 代替接口: new | @ohos.systemDateTime.d.ts |
| 错误码有变化 | 类名:PasteData; 方法or属性:addRecord(mimeType: string, value: ValueType): void; 旧版本信息:401,12900002 | 类名:PasteData; 方法or属性:addRecord(mimeType: string, value: ValueType): void; 新版本信息:401 | @ohos.pasteboard.d.ts |
| type有变化 | 类名:pasteboard; 方法or属性:type ValueType = string |image.PixelMap |Want |ArrayBuffer; 旧版本信息: | 类名:pasteboard; 方法or属性:type ValueType = string |image.PixelMap |Want |ArrayBuffer; 新版本信息:string |image.PixelMap |Want |ArrayBuffer | @ohos.pasteboard.d.ts |
| type有变化 | 类名:PasteDataProperty; 方法or属性:additions: { [key: string]: object } 旧版本信息: | 类名:PasteDataProperty; 方法or属性:additions: { [key: string]: object } 新版本信息:[key: string]: object | @ohos.pasteboard.d.ts |
| type有变化 | 类名:PasteDataProperty; 方法or属性:readonly mimeTypes: Array<string>; 旧版本信息: | 类名:PasteDataProperty; 方法or属性:readonly mimeTypes: Array<string>; 新版本信息:Array<string> | @ohos.pasteboard.d.ts |
| type有变化 | 类名:PasteDataProperty; 方法or属性:tag: string; 旧版本信息: | 类名:PasteDataProperty; 方法or属性:tag: string; 新版本信息:string | @ohos.pasteboard.d.ts |
| type有变化 | 类名:PasteDataProperty; 方法or属性:readonly timestamp: number; 旧版本信息: | 类名:PasteDataProperty; 方法or属性:readonly timestamp: number; 新版本信息:number | @ohos.pasteboard.d.ts |
| type有变化 | 类名:PasteDataProperty; 方法or属性:localOnly: boolean; 旧版本信息: | 类名:PasteDataProperty; 方法or属性:localOnly: boolean; 新版本信息:boolean | @ohos.pasteboard.d.ts |
| type有变化 | 类名:PasteDataRecord; 方法or属性:htmlText: string; 旧版本信息: | 类名:PasteDataRecord; 方法or属性:htmlText: string; 新版本信息:string | @ohos.pasteboard.d.ts |
| type有变化 | 类名:PasteDataRecord; 方法or属性:want: Want; 旧版本信息: | 类名:PasteDataRecord; 方法or属性:want: Want; 新版本信息:Want | @ohos.pasteboard.d.ts |
| type有变化 | 类名:PasteDataRecord; 方法or属性:mimeType: string; 旧版本信息: | 类名:PasteDataRecord; 方法or属性:mimeType: string; 新版本信息:string | @ohos.pasteboard.d.ts |
| type有变化 | 类名:PasteDataRecord; 方法or属性:plainText: string; 旧版本信息: | 类名:PasteDataRecord; 方法or属性:plainText: string; 新版本信息:string | @ohos.pasteboard.d.ts |
| type有变化 | 类名:PasteDataRecord; 方法or属性:uri: string; 旧版本信息: | 类名:PasteDataRecord; 方法or属性:uri: string; 新版本信息:string | @ohos.pasteboard.d.ts |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙js-apidiff-accessibility
harmony 鸿蒙js-apidiff-application
harmony 鸿蒙js-apidiff-communication