harmony 鸿蒙JS API Changes of the Misc Services Subsystem

  • 2023-02-03
  • 浏览 (618)

JS API Changes of the Misc Services Subsystem

The table below lists the APIs changes of the Misc services subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.

API Changes

Module Method/Event Method/Attribute/Enumeration/Constant Change Type
ohos.inputmethod InputMethodController hideSoftKeyboard(callback: AsyncCallback<void>): void;
hideSoftKeyboard():Promise<void>;
Added
ohos.inputmethod InputMethodController showSoftKeyboard(callback: AsyncCallback<void>): void;
showSoftKeyboard():Promise<void>;
Added
ohos.inputmethod inputMethod getCurrentInputMethod(): InputMethodProperty; Added
ohos.inputmethodengine TextInputClient moveCursor(direction: number, callback: AsyncCallback<void>): void;
moveCursor(direction: number): Promise<void>;
Added
ohos.inputmethodengine InputMethodEngine off(type: ‘setCallingWindow’, callback: (wid:number) => void): void; Added
ohos.inputmethodengine InputMethodEngine on(type: ‘setCallingWindow’, callback: (wid:number) => void): void; Added
ohos.inputmethodengine InputMethodEngine off(type: ‘inputStop’, callback: () => void): void; Added
ohos.inputmethodengine InputMethodEngine on(type: ‘inputStop’, callback: () => void): void; Added
ohos.inputmethodengine inputMethodEngine const WINDOW_TYPE_INPUT_METHOD_FLOAT: number; Added
ohos.inputmethodengine inputMethodEngine const CURSOR_RIGHT: number; Added
ohos.inputmethodengine inputMethodEngine const CURSOR_LEFT: number; Added
ohos.inputmethodengine inputMethodEngine const CURSOR_DOWN: number; Added
ohos.inputmethodengine inputMethodEngine const CURSOR_UP: number; Added
ohos.inputmethodextensionability InputMethodExtensionAbility onDestroy(): void; Added
ohos.inputmethodextensionability InputMethodExtensionAbility onCreate(want: Want): void; Added
ohos.inputmethodextensionability InputMethodExtensionAbility context: InputMethodExtensionContext; Added
ohos.inputmethodextensioncontext InputMethodExtensionContext terminateSelf(callback: AsyncCallback<void>): void;
terminateSelf(): Promise<void>;
Added
ohos.inputmethodextensioncontext InputMethodExtensionContext startAbility(want: Want, callback: AsyncCallback<void>): void;
startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void>): void;
startAbility(want: Want, options?: StartOptions): Promise<void>;
Added
ohos.pasteboard PasteData setProperty(property: PasteDataProperty): void; Added
ohos.pasteboard PasteData getPrimaryPixelMap(): image.PixelMap; Added
ohos.pasteboard PasteData addPixelMapRecord(pixelMap: image.PixelMap): void; Added
ohos.pasteboard PasteDataRecord data: { [mimeType: string]: ArrayBuffer } Added
ohos.pasteboard PasteDataRecord pixelMap: image.PixelMap; Added
ohos.pasteboard PasteDataProperty shareOption: ShareOption; Added
ohos.pasteboard ShareOption CrossDevice Added
ohos.pasteboard ShareOption LocalDevice Added
ohos.pasteboard ShareOption InApp Added
ohos.pasteboard pasteboard createRecord(mimeType: string, value: ArrayBuffer):PasteDataRecord; Added
ohos.pasteboard pasteboard createPixelMapRecord(pixelMap: image.PixelMap):PasteDataRecord; Added
ohos.pasteboard pasteboard createData(mimeType: string, value: ArrayBuffer): PasteData; Added
ohos.pasteboard pasteboard createPixelMapData(pixelMap: image.PixelMap): PasteData; Added
ohos.pasteboard pasteboard const MIMETYPE_PIXELMAP: string; Added
ohos.request UploadTask off(type:‘complete’ |‘fail’, callback?: Callback<Array<TaskState>>): void; Added
ohos.request UploadTask off(type:‘complete’ |‘fail’, callback?: Callback<Array<TaskState>>): void; Added
ohos.request UploadTask on(type:‘complete’ |‘fail’, callback: Callback<Array<TaskState>>): void; Added
ohos.request UploadTask on(type:‘complete’ |‘fail’, callback: Callback<Array<TaskState>>): void; Added
ohos.request TaskState message: string; Added
ohos.request TaskState responseCode: number; Added
ohos.request TaskState path: string; Added
ohos.request DownloadConfig background?: boolean; Added
ohos.screenLock screenLock onSystemEvent(callback: Callback<SystemEvent>): boolean; Added
ohos.screenLock SystemEvent params: string Added
ohos.screenLock SystemEvent eventType: EventType, Added
ohos.screenLock screenLock lockScreen(callback: AsyncCallback<boolean>): void;
lockScreen():Promise<boolean>;
Added
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock off(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’ |‘screenlockEnabled’ |‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock on(type: ‘screenlockEnabled’, callback: Callback<boolean>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<number>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<number>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginSleep’ |‘endSleep’ |‘changeUser’, callback: Callback<number>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’, callback: Callback<void>): void; Deleted
ohos.screenLock screenLock on(type: ‘beginWakeUp’ |‘endWakeUp’ |‘beginScreenOn’ |‘endScreenOn’ |‘beginScreenOff’ |‘endScreenOff’ |‘unlockScreen’ |‘beginExitAnimation’, callback: Callback<void>): void; Deleted

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙JS API Changes of the Ability Framework

harmony 鸿蒙JS API Changes of the Accessibility Subsystem

harmony 鸿蒙JS API Changes of the Account Subsystem

harmony 鸿蒙JS API Changes of the ArkUI Development Framework

harmony 鸿蒙JS API Changes of the Power Management Subsystem

harmony 鸿蒙JS API Changes of the Bundle Management Framework

harmony 鸿蒙JS API Changes of the Communication Subsystem

harmony 鸿蒙JS API Changes of the Compiler and Runtime Subsystem

harmony 鸿蒙JS API Changes of the DFX Subsystem

0  赞