harmony(鸿蒙)多模输入子系统JS API变更

2022-10-28 浏览 (873)

多模输入子系统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(鸿蒙)3.2 beta3相对于3.2 beta2变更详细说明

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变更

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