1# 多模输入子系统JS API变更 2 3OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,多模输入子系统的API变更如下: 4 5## 接口变更 6 7| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | 8|---|---|---|---| 9| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | off(type: 'cooperation', callback?: AsyncCallback\<void>): void; | 新增 | 10| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | on(type: 'cooperation', callback: AsyncCallback\<{ deviceDescriptor: string, eventMsg: EventMsg }>): void; | 新增 | 11| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | getState(deviceDescriptor: string, callback: AsyncCallback\<{ state: boolean }>): void;<br>getState(deviceDescriptor: string): Promise\<{ state: boolean }>; | 新增 | 12| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | stop(callback: AsyncCallback\<void>): void;<br>stop(): Promise\<void>; | 新增 | 13| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | start(sinkDeviceDescriptor: string, srcInputDeviceId: number, callback: AsyncCallback\<void>): void;<br>start(sinkDeviceDescriptor: string, srcInputDeviceId: number): Promise\<void>; | 新增 | 14| ohos.multimodalInput.inputDeviceCooperate | inputDeviceCooperate | enable(enable: boolean, callback: AsyncCallback\<void>): void;<br>enable(enable: boolean): Promise\<void>; | 新增 | 15| ohos.multimodalInput.inputDeviceCooperate | EventMsg | MSG_COOPERATE_STATE_OFF = 501 | 新增 | 16| ohos.multimodalInput.inputDeviceCooperate | EventMsg | MSG_COOPERATE_STATE_ON = 500 | 新增 | 17| ohos.multimodalInput.inputDeviceCooperate | EventMsg | MSG_COOPERATE_INFO_FAIL = 202 | 新增 | 18| ohos.multimodalInput.inputDeviceCooperate | EventMsg | MSG_COOPERATE_INFO_SUCCESS = 201 | 新增 | 19| ohos.multimodalInput.inputDeviceCooperate | EventMsg | MSG_COOPERATE_INFO_START = 200 | 新增 | 20| ohos.multimodalInput.pointer | pointer | isPointerVisible(callback: AsyncCallback\<boolean>): void;<br>isPointerVisible(): Promise\<boolean>; | 新增 | 21| ohos.multimodalInput.pointer | pointer | setPointerVisible(visible: boolean, callback: AsyncCallback\<void>): void;<br>setPointerVisible(visible: boolean): Promise\<void>; | 新增 | 22| ohos.multimodalInput.pointer | pointer | getPointerStyle(windowId: number, callback: AsyncCallback\<PointerStyle>): void;<br>getPointerStyle(windowId: number): Promise\<PointerStyle>; | 新增 | 23| ohos.multimodalInput.pointer | pointer | setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback\<void>): void;<br>setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise\<void>; | 新增 | 24| ohos.multimodalInput.pointer | pointer | getPointerSpeed(callback: AsyncCallback\<number>): void;<br>getPointerSpeed(): Promise\<number>; | 新增 | 25| ohos.multimodalInput.pointer | pointer | setPointerSpeed(speed: number, callback: AsyncCallback\<void>): void;<br>setPointerSpeed(speed: number): Promise\<void>; | 新增 | 26| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_NORTH_SOUTH_WEST_EAST | 新增 | 27| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_SOUTH_WEST | 新增 | 28| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_SOUTH_EAST | 新增 | 29| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_NORTH_WEST | 新增 | 30| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_NORTH_EAST | 新增 | 31| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_NORTH_SOUTH | 新增 | 32| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_NORTH | 新增 | 33| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_SOUTH | 新增 | 34| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_WEST | 新增 | 35| ohos.multimodalInput.pointer | PointerStyle | MIDDLE_BTN_EAST | 新增 | 36| ohos.multimodalInput.pointer | PointerStyle | ZOOM_OUT | 新增 | 37| ohos.multimodalInput.pointer | PointerStyle | ZOOM_IN | 新增 | 38| ohos.multimodalInput.pointer | PointerStyle | TEXT_CURSOR | 新增 | 39| ohos.multimodalInput.pointer | PointerStyle | SCREENSHOT_CURSOR | 新增 | 40| ohos.multimodalInput.pointer | PointerStyle | SCREENSHOT_CHOOSE | 新增 | 41| ohos.multimodalInput.pointer | PointerStyle | RESIZE_UP_DOWN | 新增 | 42| ohos.multimodalInput.pointer | PointerStyle | RESIZE_LEFT_RIGHT | 新增 | 43| ohos.multimodalInput.pointer | PointerStyle | MOVE | 新增 | 44| ohos.multimodalInput.pointer | PointerStyle | HELP | 新增 | 45| ohos.multimodalInput.pointer | PointerStyle | HAND_POINTING | 新增 | 46| ohos.multimodalInput.pointer | PointerStyle | HAND_OPEN | 新增 | 47| ohos.multimodalInput.pointer | PointerStyle | HAND_GRABBING | 新增 | 48| ohos.multimodalInput.pointer | PointerStyle | COLOR_SUCKER | 新增 | 49| ohos.multimodalInput.pointer | PointerStyle | CURSOR_FORBID | 新增 | 50| ohos.multimodalInput.pointer | PointerStyle | CURSOR_COPY | 新增 | 51| ohos.multimodalInput.pointer | PointerStyle | CROSS | 新增 | 52| ohos.multimodalInput.pointer | PointerStyle | NORTH_WEST_SOUTH_EAST | 新增 | 53| ohos.multimodalInput.pointer | PointerStyle | NORTH_EAST_SOUTH_WEST | 新增 | 54| ohos.multimodalInput.pointer | PointerStyle | SOUTH_WEST | 新增 | 55| ohos.multimodalInput.pointer | PointerStyle | SOUTH_EAST | 新增 | 56| ohos.multimodalInput.pointer | PointerStyle | NORTH_WEST | 新增 | 57| ohos.multimodalInput.pointer | PointerStyle | NORTH_EAST | 新增 | 58| ohos.multimodalInput.pointer | PointerStyle | NORTH_SOUTH | 新增 | 59| ohos.multimodalInput.pointer | PointerStyle | WEST_EAST | 新增 | 60| ohos.multimodalInput.pointer | PointerStyle | NORTH | 新增 | 61| ohos.multimodalInput.pointer | PointerStyle | SOUTH | 新增 | 62| ohos.multimodalInput.pointer | PointerStyle | WEST | 新增 | 63| ohos.multimodalInput.pointer | PointerStyle | EAST | 新增 | 64| ohos.multimodalInput.pointer | PointerStyle | DEFAULT | 新增 | 65 66