From fc3f98dd0fc84fd54321c7dbc51c391d030fc5af Mon Sep 17 00:00:00 2001 From: hwzhangchuang Date: Thu, 20 Jan 2022 17:17:09 +0800 Subject: [PATCH] add DeviceManager API Change Log Signed-off-by: hwzhangchuang --- .../api-change/v3.1-LTS/js-apidiff-v3.1-LTS.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 zh-cn/release-notes/api-change/v3.1-LTS/js-apidiff-v3.1-LTS.md 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 0000000000..15fdc3da8b --- /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 -- GitLab