harmony 鸿蒙Pan-sensor Subsystem Changelog

  • 2023-06-24
  • 浏览 (301)

Pan-sensor Subsystem Changelog

cl.ability.1 Attribute Name Changed from venderName to vendorName in the Sensor API

venderName is changed to vendorName.

Change Impact

The venderName attribute cannot be used anymore. Use vendorName instead.

Key API/Component Changes

  • Before change:
    interface Sensor {
        sensorName:string; /**< Sensor name */
        venderName:string; /**< Sensor vendor version */
        firmwareVersion:string; /**< Sensor firmware version */
        hardwareVersion:string; /**< Sensor hardware version */
        sensorId:number; /**< Sensor type ID, {@code SensorType} */
        maxRange:number; /**< Maximum measurement range of the sensor */
        minSamplePeriod:number; /**< Minimum sample period allowed, in ns */
        maxSamplePeriod:number; /**< maximum sample period allowed, in ns */
        precision:number; /**< Sensor accuracy */
        power:number; /**< Sensor power */
    }
  • After change:
    interface Sensor {
        sensorName:string; /**< Sensor name */
        vendorName:string; /**< Sensor vendor version */
        firmwareVersion:string; /**< Sensor firmware version */
        hardwareVersion:string; /**< Sensor hardware version */
        sensorId:number; /**< Sensor type ID, {@code SensorType} */
        maxRange:number; /**< Maximum measurement range of the sensor */
        minSamplePeriod:number; /**< Minimum sample period allowed, in ns */
        maxSamplePeriod:number; /**< maximum sample period allowed, in ns */
        precision:number; /**< Sensor accuracy */
        power:number; /**< Sensor power */
    }

Adaptation Guide

Replace venderName with vendorName.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙App Access Control Subsystem ChangeLog

harmony 鸿蒙Security Subsystem Changelog

harmony 鸿蒙Web Subsystem Changelog

harmony 鸿蒙Account Subsystem Changelog

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙Bundle Manager Subsystem Changelog

harmony 鸿蒙Common Event Subsystem Changelog

harmony 鸿蒙File Management Subsystem Changelog

harmony 鸿蒙Pasteboard Subsystem Changelog

harmony 鸿蒙Power Subsystem Changelog

0  赞