harmony 鸿蒙JS API Changes of the Multimodal Input Subsystem

  • 2023-02-03
  • 浏览 (466)

JS API Changes of the Multimodal Input Subsystem

The table below lists the APIs changes of the multimodal input subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS.

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
ohos.multimodalInput.inputDevice inputDevice function getDevice(deviceId: number, callback: AsyncCallback<InputDeviceData>): void;
function getDevice(deviceId: number): Promise<InputDeviceData>;
Added
ohos.multimodalInput.inputDevice inputDevice function getDeviceIds(callback: AsyncCallback>): void;
function getDeviceIds(): Promise>;
Added
ohos.multimodalInput.inputDevice InputDeviceData axisRanges : Array<AxisRange>; Added
ohos.multimodalInput.inputDevice InputDeviceData sources : Array<SourceType>; Added
ohos.multimodalInput.inputDevice InputDeviceData name: string; Added
ohos.multimodalInput.inputDevice InputDeviceData id: number; Added
ohos.multimodalInput.inputDevice AxisRange min: number; Added
ohos.multimodalInput.inputDevice AxisRange max : number; Added
ohos.multimodalInput.inputDevice AxisRange axis : AxisType; Added
ohos.multimodalInput.inputDevice AxisRange source: SourceType; Added

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

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 Compiler and Runtime Subsystem

harmony 鸿蒙JS API Changes of the DFX Subsystem

0  赞