1# JS API Changes of the Misc Services Subsystem 2 3The table below lists the APIs changes of the Misc services subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2. 4 5## API Changes 6 7| Module| Method/Event| Method/Attribute/Enumeration/Constant| Change Type| 8|---|---|---|---| 9| ohos.inputmethod | InputMethodController | hideSoftKeyboard(callback: AsyncCallback\<void>): void;<br>hideSoftKeyboard():Promise\<void>; | Added| 10| ohos.inputmethod | InputMethodController | showSoftKeyboard(callback: AsyncCallback\<void>): void;<br>showSoftKeyboard():Promise\<void>; | Added| 11| ohos.inputmethod | inputMethod | getCurrentInputMethod(): InputMethodProperty; | Added| 12| ohos.inputmethodengine | TextInputClient | moveCursor(direction: number, callback: AsyncCallback\<void>): void;<br>moveCursor(direction: number): Promise\<void>; | Added| 13| ohos.inputmethodengine | InputMethodEngine | off(type: 'setCallingWindow', callback: (wid:number) => void): void; | Added| 14| ohos.inputmethodengine | InputMethodEngine | on(type: 'setCallingWindow', callback: (wid:number) => void): void; | Added| 15| ohos.inputmethodengine | InputMethodEngine | off(type: 'inputStop', callback: () => void): void; | Added| 16| ohos.inputmethodengine | InputMethodEngine | on(type: 'inputStop', callback: () => void): void; | Added| 17| ohos.inputmethodengine | inputMethodEngine | const WINDOW_TYPE_INPUT_METHOD_FLOAT: number; | Added| 18| ohos.inputmethodengine | inputMethodEngine | const CURSOR_RIGHT: number; | Added| 19| ohos.inputmethodengine | inputMethodEngine | const CURSOR_LEFT: number; | Added| 20| ohos.inputmethodengine | inputMethodEngine | const CURSOR_DOWN: number; | Added| 21| ohos.inputmethodengine | inputMethodEngine | const CURSOR_UP: number; | Added| 22| ohos.inputmethodextensionability | InputMethodExtensionAbility | onDestroy(): void; | Added| 23| ohos.inputmethodextensionability | InputMethodExtensionAbility | onCreate(want: Want): void; | Added| 24| ohos.inputmethodextensionability | InputMethodExtensionAbility | context: InputMethodExtensionContext; | Added| 25| ohos.inputmethodextensioncontext | InputMethodExtensionContext | terminateSelf(callback: AsyncCallback\<void>): void;<br>terminateSelf(): Promise\<void>; | Added| 26| ohos.inputmethodextensioncontext | InputMethodExtensionContext | startAbility(want: Want, callback: AsyncCallback\<void>): void;<br>startAbility(want: Want, options: StartOptions, callback: AsyncCallback\<void>): void;<br>startAbility(want: Want, options?: StartOptions): Promise\<void>; | Added| 27| ohos.pasteboard | PasteData | setProperty(property: PasteDataProperty): void; | Added| 28| ohos.pasteboard | PasteData | getPrimaryPixelMap(): image.PixelMap; | Added| 29| ohos.pasteboard | PasteData | addPixelMapRecord(pixelMap: image.PixelMap): void; | Added| 30| ohos.pasteboard | PasteDataRecord | data: { [mimeType: string]: ArrayBuffer } | Added | 31| ohos.pasteboard | PasteDataRecord | pixelMap: image.PixelMap; | Added| 32| ohos.pasteboard | PasteDataProperty | shareOption: ShareOption; | Added| 33| ohos.pasteboard | ShareOption | CrossDevice | Added| 34| ohos.pasteboard | ShareOption | LocalDevice | Added| 35| ohos.pasteboard | ShareOption | InApp | Added| 36| ohos.pasteboard | pasteboard | createRecord(mimeType: string, value: ArrayBuffer):PasteDataRecord; | Added| 37| ohos.pasteboard | pasteboard | createPixelMapRecord(pixelMap: image.PixelMap):PasteDataRecord; | Added| 38| ohos.pasteboard | pasteboard | createData(mimeType: string, value: ArrayBuffer): PasteData; | Added| 39| ohos.pasteboard | pasteboard | createPixelMapData(pixelMap: image.PixelMap): PasteData; | Added| 40| ohos.pasteboard | pasteboard | const MIMETYPE_PIXELMAP: string; | Added| 41| ohos.request | UploadTask | off(type:'complete' \| 'fail', callback?: Callback\<Array\<TaskState>>): void; | Added| 42| ohos.request | UploadTask | off(type:'complete' \| 'fail', callback?: Callback\<Array\<TaskState>>): void; | Added| 43| ohos.request | UploadTask | on(type:'complete' \| 'fail', callback: Callback\<Array\<TaskState>>): void; | Added| 44| ohos.request | UploadTask | on(type:'complete' \| 'fail', callback: Callback\<Array\<TaskState>>): void; | Added| 45| ohos.request | TaskState | message: string; | Added| 46| ohos.request | TaskState | responseCode: number; | Added| 47| ohos.request | TaskState | path: string; | Added| 48| ohos.request | DownloadConfig | background?: boolean; | Added| 49| ohos.screenLock | screenLock | onSystemEvent(callback: Callback\<SystemEvent>): boolean; | Added| 50| ohos.screenLock | SystemEvent | params: string | Added| 51| ohos.screenLock | SystemEvent | eventType: EventType, | Added| 52| ohos.screenLock | screenLock | lockScreen(callback: AsyncCallback\<boolean>): void;<br>lockScreen():Promise\<boolean>; | Added| 53| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 54| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 55| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 56| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 57| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 58| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 59| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 60| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 61| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 62| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 63| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 64| ohos.screenLock | screenLock | off(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation' \| 'screenlockEnabled' \| 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<void>): void; | Deleted | 65| ohos.screenLock | screenLock | on(type: 'screenlockEnabled', callback: Callback\<boolean>): void; | Deleted| 66| ohos.screenLock | screenLock | on(type: 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<number>): void; | Deleted| 67| ohos.screenLock | screenLock | on(type: 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<number>): void; | Deleted| 68| ohos.screenLock | screenLock | on(type: 'beginSleep' \| 'endSleep' \| 'changeUser', callback: Callback\<number>): void; | Deleted| 69| ohos.screenLock | screenLock | on(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation', callback: Callback\<void>): void; | Deleted| 70| ohos.screenLock | screenLock | on(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation', callback: Callback\<void>): void; | Deleted| 71| ohos.screenLock | screenLock | on(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation', callback: Callback\<void>): void; | Deleted| 72| ohos.screenLock | screenLock | on(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation', callback: Callback\<void>): void; | Deleted| 73| ohos.screenLock | screenLock | on(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation', callback: Callback\<void>): void; | Deleted| 74| ohos.screenLock | screenLock | on(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation', callback: Callback\<void>): void; | Deleted| 75| ohos.screenLock | screenLock | on(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation', callback: Callback\<void>): void; | Deleted| 76| ohos.screenLock | screenLock | on(type: 'beginWakeUp' \| 'endWakeUp' \| 'beginScreenOn' \| 'endScreenOn' \| 'beginScreenOff' \| 'endScreenOff' \| 'unlockScreen' \| 'beginExitAnimation', callback: Callback\<void>): void; | Deleted| 77