openharmony 鸿蒙 js-apidiff-multi-modal-input

2022-12-22 浏览 (739)

多模输入子系统JS API变更

OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,多模输入子系统的API变更如下:

接口变更

模块名类名方法/属性/枚举/常量变更类型
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperateoff(type: 'cooperation', callback?: AsyncCallback<void>): void;新增
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperateon(type: 'cooperation', callback: AsyncCallback<{ deviceDescriptor: string, eventMsg: EventMsg }>): void;新增
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperategetState(deviceDescriptor: string, callback: AsyncCallback<{ state: boolean }>): void;
getState(deviceDescriptor: string): Promise<{ state: boolean }>;
新增
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperatestop(callback: AsyncCallback<void>): void;
stop(): Promise<void>;
新增
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperatestart(sinkDeviceDescriptor: string, srcInputDeviceId: number, callback: AsyncCallback<void>): void;
start(sinkDeviceDescriptor: string, srcInputDeviceId: number): Promise<void>;
新增
ohos.multimodalInput.inputDeviceCooperateinputDeviceCooperateenable(enable: boolean, callback: AsyncCallback<void>): void;
enable(enable: boolean): Promise<void>;
新增
ohos.multimodalInput.inputDeviceCooperateEventMsgMSG_COOPERATE_STATE_OFF = 501新增
ohos.multimodalInput.inputDeviceCooperateEventMsgMSG_COOPERATE_STATE_ON = 500新增
ohos.multimodalInput.inputDeviceCooperateEventMsgMSG_COOPERATE_INFO_FAIL = 202新增
ohos.multimodalInput.inputDeviceCooperateEventMsgMSG_COOPERATE_INFO_SUCCESS = 201新增
ohos.multimodalInput.inputDeviceCooperateEventMsgMSG_COOPERATE_INFO_START = 200新增
ohos.multimodalInput.pointerpointerisPointerVisible(callback: AsyncCallback<boolean>): void;
isPointerVisible(): Promise<boolean>;
新增
ohos.multimodalInput.pointerpointersetPointerVisible(visible: boolean, callback: AsyncCallback<void>): void;
setPointerVisible(visible: boolean): Promise<void>;
新增
ohos.multimodalInput.pointerpointergetPointerStyle(windowId: number, callback: AsyncCallback<PointerStyle>): void;
getPointerStyle(windowId: number): Promise<PointerStyle>;
新增
ohos.multimodalInput.pointerpointersetPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback<void>): void;
setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise<void>;
新增
ohos.multimodalInput.pointerpointergetPointerSpeed(callback: AsyncCallback<number>): void;
getPointerSpeed(): Promise<number>;
新增
ohos.multimodalInput.pointerpointersetPointerSpeed(speed: number, callback: AsyncCallback<void>): void;
setPointerSpeed(speed: number): Promise<void>;
新增
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_NORTH_SOUTH_WEST_EAST新增
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_SOUTH_WEST新增
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_SOUTH_EAST新增
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_NORTH_WEST新增
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_NORTH_EAST新增
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_NORTH_SOUTH新增
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_NORTH新增
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_SOUTH新增
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_WEST新增
ohos.multimodalInput.pointerPointerStyleMIDDLE_BTN_EAST新增
ohos.multimodalInput.pointerPointerStyleZOOM_OUT新增
ohos.multimodalInput.pointerPointerStyleZOOM_IN新增
ohos.multimodalInput.pointerPointerStyleTEXT_CURSOR新增
ohos.multimodalInput.pointerPointerStyleSCREENSHOT_CURSOR新增
ohos.multimodalInput.pointerPointerStyleSCREENSHOT_CHOOSE新增
ohos.multimodalInput.pointerPointerStyleRESIZE_UP_DOWN新增
ohos.multimodalInput.pointerPointerStyleRESIZE_LEFT_RIGHT新增
ohos.multimodalInput.pointerPointerStyleMOVE新增
ohos.multimodalInput.pointerPointerStyleHELP新增
ohos.multimodalInput.pointerPointerStyleHAND_POINTING新增
ohos.multimodalInput.pointerPointerStyleHAND_OPEN新增
ohos.multimodalInput.pointerPointerStyleHAND_GRABBING新增
ohos.multimodalInput.pointerPointerStyleCOLOR_SUCKER新增
ohos.multimodalInput.pointerPointerStyleCURSOR_FORBID新增
ohos.multimodalInput.pointerPointerStyleCURSOR_COPY新增
ohos.multimodalInput.pointerPointerStyleCROSS新增
ohos.multimodalInput.pointerPointerStyleNORTH_WEST_SOUTH_EAST新增
ohos.multimodalInput.pointerPointerStyleNORTH_EAST_SOUTH_WEST新增
ohos.multimodalInput.pointerPointerStyleSOUTH_WEST新增
ohos.multimodalInput.pointerPointerStyleSOUTH_EAST新增
ohos.multimodalInput.pointerPointerStyleNORTH_WEST新增
ohos.multimodalInput.pointerPointerStyleNORTH_EAST新增
ohos.multimodalInput.pointerPointerStyleNORTH_SOUTH新增
ohos.multimodalInput.pointerPointerStyleWEST_EAST新增
ohos.multimodalInput.pointerPointerStyleNORTH新增
ohos.multimodalInput.pointerPointerStyleSOUTH新增
ohos.multimodalInput.pointerPointerStyleWEST新增
ohos.multimodalInput.pointerPointerStyleEAST新增
ohos.multimodalInput.pointerPointerStyleDEFAULT新增

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙元能力子系统JS API变更

harmony 鸿蒙无障碍子系统JS API变更

harmony 鸿蒙帐号子系统JS API变更

harmony 鸿蒙ArkUI子系统JS API变更

harmony 鸿蒙电源服务子系统JS API变更

harmony 鸿蒙包管理子系统JS API变更

harmony 鸿蒙基础通信子系统JS API变更

harmony 鸿蒙公共基础库子系统JS API变更

harmony 鸿蒙DFX子系统JS API变更

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