openharmony 鸿蒙 js-apidiff-sensor

2023-02-03 浏览 (651)

JS API Changes of the Pan-Sensor Subsystem

The table below lists the APIs changes of the pan-sensor subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.

API Changes

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
ohos.sensorSensorTypeSENSOR_TYPE_ID_HEART_BEAT_RATE = 278Added
ohos.sensorSensorTypeSENSOR_TYPE_ID_LINEAR_ACCELEROMETER = 258Added
ohos.sensorsensorgetSensorLists(callback: AsyncCallback<Array<Sensor>>): void;
getSensorLists(): Promise<Array<Sensor>>;
Added
ohos.sensorsensorgetSingleSensor(type: SensorType, callback: AsyncCallback<Sensor>): void;
getSingleSensor(type: SensorType): Promise<Sensor>;
Added
ohos.sensorSensorpower:number;Added
ohos.sensorSensorprecision:number;Added
ohos.sensorSensormaxRange:number;Added
ohos.sensorSensorsensorTypeId:number;Added
ohos.sensorSensorhardwareVersion:string;Added
ohos.sensorSensorfirmwareVersion:string;Added
ohos.sensorSensorvenderName:string;Added
ohos.sensorSensorsensorName:string;Added
ohos.sensorSensorTypeSENSOR_TYPE_ID_HEART_RATE = 278Deprecated
ohos.sensorSensorTypeSENSOR_TYPE_ID_LINEAR_ACCELERATION = 258Deprecated

你可能感兴趣的鸿蒙文章

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

harmony 鸿蒙JS API Changes of the Distributed Data Management Subsystem

harmony 鸿蒙JS API Changes of the Common Event and Notification Subsystem

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