diff --git a/zh-cn/release-notes/api-change/v3.1-LTS/js-apidiff-v3.1-LTS.md b/zh-cn/release-notes/api-change/v3.1-LTS/js-apidiff-v3.1-LTS.md new file mode 100644 index 0000000000000000000000000000000000000000..15fdc3da8b457d64e11364dc221db6e3d3d38082 --- /dev/null +++ b/zh-cn/release-notes/api-change/v3.1-LTS/js-apidiff-v3.1-LTS.md @@ -0,0 +1,14 @@ +# JS API Diff + +OpenHarmony 3.1 LTS版本相较于OpenHarmony 3.1 Beta版本的API变更如下: + +## 接口变更 + +| 模块名称 | 接口名称 | 变更类型 | 变更说明 | +| -------- | -------- | -------- | -------- | +| 分布式硬件子系统-DeviceManager | release(): void | 删除 | 为了降低安全风险,删除设备管理JS API | +| 分布式硬件子系统-DeviceManager | getTrustedDeviceListSync(): Array | 删除 | 为了降低安全风险,删除设备管理JS API | +| 分布式硬件子系统-DeviceManager | on(type: 'deviceStateChange', callback: Callback<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void | 删除 | 为了降低安全风险,删除设备管理JS API | +| 分布式硬件子系统-DeviceManager | off(type: 'deviceStateChange', callback?: Call back<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void | 删除 | 为了降低安全风险,删除设备管理JS API | +| 分布式硬件子系统-DeviceManager | on(type: 'serviceDie', callback: () => void): void | 删除 | 为了降低安全风险,删除设备管理JS API | +| 分布式硬件子系统-DeviceManager | off(type: 'serviceDie', callback?: () => void): void | 删除 | 为了降低安全风险,删除设备管理JS API | \ No newline at end of file