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

2022-10-28 浏览 (621)

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

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperateoff(type: 'cooperation', callback?: AsyncCallback<void>): void;Added
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperateon(type: 'cooperation', callback: AsyncCallback<{ deviceDescriptor: string, eventMsg: EventMsg }>): void;Added
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperategetState(deviceDescriptor: string, callback: AsyncCallback<{ state: boolean }>): void;
getState(deviceDescriptor: string): Promise<{ state: boolean }>;
Added
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperatestop(callback: AsyncCallback<void>): void;
stop(): Promise<void>;
Added
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperatestart(sinkDeviceDescriptor: string, srcInputDeviceId: number, callback: AsyncCallback<void>): void;
start(sinkDeviceDescriptor: string, srcInputDeviceId: number): Promise<void>;
Added
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperateenable(enable: boolean, callback: AsyncCallback<void>): void;
enable(enable: boolean): Promise<void>;
Added
ohos.multimodalInput.inputDeviceCooperateEventMsgMSG_COOPERATE_STATE_OFF = 501Added
ohos.multimodalInput.inputDeviceCooperateEventMsgMSG_COOPERATE_STATE_ON = 500Added
ohos.multimodalInput.inputDeviceCooperateEventMsgMSG_COOPERATE_INFO_FAIL = 202Added
ohos.multimodalInput.inputDeviceCooperateEventMsgMSG_COOPERATE_INFO_SUCCESS = 201Added
ohos.multimodalInput.inputDeviceCooperateEventMsgMSG_COOPERATE_INFO_START = 200Added
ohos.multimodalInput.pointerpointerisPointerVisible(callback: AsyncCallback<boolean>): void;
isPointerVisible(): Promise<boolean>;
Added
ohos.multimodalInput.pointerpointersetPointerVisible(visible: boolean, callback: AsyncCallback<void>): void;
setPointerVisible(visible: boolean): Promise<void>;
Added
ohos.multimodalInput.pointerpointergetPointerStyle(windowId: number, callback: AsyncCallback<PointerStyle>): void;
getPointerStyle(windowId: number): Promise<PointerStyle>;
Added
ohos.multimodalInput.pointerpointersetPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback<void>): void;
setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise<void>;
Added
ohos.multimodalInput.pointerpointergetPointerSpeed(callback: AsyncCallback<number>): void;
getPointerSpeed(): Promise<number>;
Added
ohos.multimodalInput.pointerpointersetPointerSpeed(speed: number, callback: AsyncCallback<void>): void;
setPointerSpeed(speed: number): Promise<void>;
Added
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_NORTH_SOUTH_WEST_EASTAdded
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_SOUTH_WESTAdded
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_SOUTH_EASTAdded
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_NORTH_WESTAdded
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_NORTH_EASTAdded
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_NORTH_SOUTHAdded
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_NORTHAdded
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_SOUTHAdded
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_WESTAdded
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_EASTAdded
ohos.multimodalInput.pointerPointerStyleZOOM_OUTAdded
ohos.multimodalInput.pointerPointerStyleZOOM_INAdded
ohos.multimodalInput.pointerPointerStyleTEXT_CURSORAdded
ohos.multimodalInput.pointerPointerStyleSCREENSHOT_CURSORAdded
ohos.multimodalInput.pointerPointerStyleSCREENSHOT_CHOOSEAdded
ohos.multimodalInput.pointerPointerStyleRESIZE_UP_DOWNAdded
ohos.multimodalInput.pointerPointerStyleRESIZE_LEFT_RIGHTAdded
ohos.multimodalInput.pointerPointerStyleMOVEAdded
ohos.multimodalInput.pointerPointerStyleHELPAdded
ohos.multimodalInput.pointerPointerStyleHAND_POINTINGAdded
ohos.multimodalInput.pointerPointerStyleHAND_OPENAdded
ohos.multimodalInput.pointerPointerStyleHAND_GRABBINGAdded
ohos.multimodalInput.pointerPointerStyleCOLOR_SUCKERAdded
ohos.multimodalInput.pointerPointerStyleCURSOR_FORBIDAdded
ohos.multimodalInput.pointerPointerStyleCURSOR_COPYAdded
ohos.multimodalInput.pointerPointerStyleCROSSAdded
ohos.multimodalInput.pointerPointerStyleNORTH_WEST_SOUTH_EASTAdded
ohos.multimodalInput.pointerPointerStyleNORTH_EAST_SOUTH_WESTAdded
ohos.multimodalInput.pointerPointerStyleSOUTH_WESTAdded
ohos.multimodalInput.pointerPointerStyleSOUTH_EASTAdded
ohos.multimodalInput.pointerPointerStyleNORTH_WESTAdded
ohos.multimodalInput.pointerPointerStyleNORTH_EASTAdded
ohos.multimodalInput.pointerPointerStyleNORTH_SOUTHAdded
ohos.multimodalInput.pointerPointerStyleWEST_EASTAdded
ohos.multimodalInput.pointerPointerStyleNORTHAdded
ohos.multimodalInput.pointerPointerStyleSOUTHAdded
ohos.multimodalInput.pointerPointerStyleWESTAdded
ohos.multimodalInput.pointerPointerStyleEASTAdded
ohos.multimodalInput.pointerPointerStyleDEFAULTAdded

你可能感兴趣的鸿蒙文章

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

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/742498018ea6419cb2ebda76b195d256