harmony(鸿蒙)JS API Changes of the Multimodal Input Subsystem

  • 2022-10-28
  • 浏览 (485)

JS API Changes of the Multimodal Input Subsystem

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

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
ohos.multimodalInput.inputDeviceCooperate inputDeviceCooperate off(type: ‘cooperation’, callback?: AsyncCallback<void>): void; Added
ohos.multimodalInput.inputDeviceCooperate inputDeviceCooperate on(type: ‘cooperation’, callback: AsyncCallback<{ deviceDescriptor: string, eventMsg: EventMsg }>): void; Added
ohos.multimodalInput.inputDeviceCooperate inputDeviceCooperate getState(deviceDescriptor: string, callback: AsyncCallback<{ state: boolean }>): void;
getState(deviceDescriptor: string): Promise<{ state: boolean }>;
Added
ohos.multimodalInput.inputDeviceCooperate inputDeviceCooperate stop(callback: AsyncCallback<void>): void;
stop(): Promise<void>;
Added
ohos.multimodalInput.inputDeviceCooperate inputDeviceCooperate start(sinkDeviceDescriptor: string, srcInputDeviceId: number, callback: AsyncCallback<void>): void;
start(sinkDeviceDescriptor: string, srcInputDeviceId: number): Promise<void>;
Added
ohos.multimodalInput.inputDeviceCooperate inputDeviceCooperate enable(enable: boolean, callback: AsyncCallback<void>): void;
enable(enable: boolean): Promise<void>;
Added
ohos.multimodalInput.inputDeviceCooperate EventMsg MSG_COOPERATE_STATE_OFF = 501 Added
ohos.multimodalInput.inputDeviceCooperate EventMsg MSG_COOPERATE_STATE_ON = 500 Added
ohos.multimodalInput.inputDeviceCooperate EventMsg MSG_COOPERATE_INFO_FAIL = 202 Added
ohos.multimodalInput.inputDeviceCooperate EventMsg MSG_COOPERATE_INFO_SUCCESS = 201 Added
ohos.multimodalInput.inputDeviceCooperate EventMsg MSG_COOPERATE_INFO_START = 200 Added
ohos.multimodalInput.pointer pointer isPointerVisible(callback: AsyncCallback<boolean>): void;
isPointerVisible(): Promise<boolean>;
Added
ohos.multimodalInput.pointer pointer setPointerVisible(visible: boolean, callback: AsyncCallback<void>): void;
setPointerVisible(visible: boolean): Promise<void>;
Added
ohos.multimodalInput.pointer pointer getPointerStyle(windowId: number, callback: AsyncCallback<PointerStyle>): void;
getPointerStyle(windowId: number): Promise<PointerStyle>;
Added
ohos.multimodalInput.pointer pointer setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback<void>): void;
setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise<void>;
Added
ohos.multimodalInput.pointer pointer getPointerSpeed(callback: AsyncCallback<number>): void;
getPointerSpeed(): Promise<number>;
Added
ohos.multimodalInput.pointer pointer setPointerSpeed(speed: number, callback: AsyncCallback<void>): void;
setPointerSpeed(speed: number): Promise<void>;
Added
ohos.multimodalInput.pointer PointerStyle MIDDLE_BTN_NORTH_SOUTH_WEST_EAST Added
ohos.multimodalInput.pointer PointerStyle MIDDLE_BTN_SOUTH_WEST Added
ohos.multimodalInput.pointer PointerStyle MIDDLE_BTN_SOUTH_EAST Added
ohos.multimodalInput.pointer PointerStyle MIDDLE_BTN_NORTH_WEST Added
ohos.multimodalInput.pointer PointerStyle MIDDLE_BTN_NORTH_EAST Added
ohos.multimodalInput.pointer PointerStyle MIDDLE_BTN_NORTH_SOUTH Added
ohos.multimodalInput.pointer PointerStyle MIDDLE_BTN_NORTH Added
ohos.multimodalInput.pointer PointerStyle MIDDLE_BTN_SOUTH Added
ohos.multimodalInput.pointer PointerStyle MIDDLE_BTN_WEST Added
ohos.multimodalInput.pointer PointerStyle MIDDLE_BTN_EAST Added
ohos.multimodalInput.pointer PointerStyle ZOOM_OUT Added
ohos.multimodalInput.pointer PointerStyle ZOOM_IN Added
ohos.multimodalInput.pointer PointerStyle TEXT_CURSOR Added
ohos.multimodalInput.pointer PointerStyle SCREENSHOT_CURSOR Added
ohos.multimodalInput.pointer PointerStyle SCREENSHOT_CHOOSE Added
ohos.multimodalInput.pointer PointerStyle RESIZE_UP_DOWN Added
ohos.multimodalInput.pointer PointerStyle RESIZE_LEFT_RIGHT Added
ohos.multimodalInput.pointer PointerStyle MOVE Added
ohos.multimodalInput.pointer PointerStyle HELP Added
ohos.multimodalInput.pointer PointerStyle HAND_POINTING Added
ohos.multimodalInput.pointer PointerStyle HAND_OPEN Added
ohos.multimodalInput.pointer PointerStyle HAND_GRABBING Added
ohos.multimodalInput.pointer PointerStyle COLOR_SUCKER Added
ohos.multimodalInput.pointer PointerStyle CURSOR_FORBID Added
ohos.multimodalInput.pointer PointerStyle CURSOR_COPY Added
ohos.multimodalInput.pointer PointerStyle CROSS Added
ohos.multimodalInput.pointer PointerStyle NORTH_WEST_SOUTH_EAST Added
ohos.multimodalInput.pointer PointerStyle NORTH_EAST_SOUTH_WEST Added
ohos.multimodalInput.pointer PointerStyle SOUTH_WEST Added
ohos.multimodalInput.pointer PointerStyle SOUTH_EAST Added
ohos.multimodalInput.pointer PointerStyle NORTH_WEST Added
ohos.multimodalInput.pointer PointerStyle NORTH_EAST Added
ohos.multimodalInput.pointer PointerStyle NORTH_SOUTH Added
ohos.multimodalInput.pointer PointerStyle WEST_EAST Added
ohos.multimodalInput.pointer PointerStyle NORTH Added
ohos.multimodalInput.pointer PointerStyle SOUTH Added
ohos.multimodalInput.pointer PointerStyle WEST Added
ohos.multimodalInput.pointer PointerStyle EAST Added
ohos.multimodalInput.pointer PointerStyle DEFAULT Added

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)Updates (OpenHarmony 3.2 Beta2 -> OpenHarmony 3.2 Beta3)

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 Utils Subsystem

0  赞