From 0352194d326444f775b8942ac20d297e54a21b12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E6=99=93=E6=99=93?= Date: Tue, 11 Jul 2023 16:11:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 史晓晓 --- .../apis/js-apis-distributedDeviceManager.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributedDeviceManager.md b/zh-cn/application-dev/reference/apis/js-apis-distributedDeviceManager.md index a385c6e576..f49a3c2962 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributedDeviceManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributedDeviceManager.md @@ -41,7 +41,7 @@ createDeviceManager(bundleName: string): DeviceManager; | 名称 | 说明 | | ------------------------------------------- | --------- | - | [DeviceManager](#devicemanager); | 返回设备管理器对象实例。 | + | [DeviceManager](#devicemanager) | 返回设备管理器对象实例。 | **示例:** @@ -53,7 +53,7 @@ createDeviceManager(bundleName: string): DeviceManager; } ``` -### deviceManager.releaseDeviceManager +## deviceManager.releaseDeviceManager releaseDeviceManager(deviceManager: DeviceManager): void; @@ -480,12 +480,14 @@ startDiscovering(discoverParam: {[key: string]: Object} , filterOption **示例:** ```js - var discoverParam = "1"; + var discoverParam = { + 'discoverTargetType': 1 + }; var filterOptions = { - 'availableStatus': '1', - 'discoverDistance': '50', - 'authenticationStatus': '0', - 'authorizationType':'0' + 'availableStatus': 1, + 'discoverDistance': 50, + 'authenticationStatus': 0, + 'authorizationType': 0 }; try { dmInstance.startDiscovering(discoverParam, filterOptions); // 当有设备发现时,通过discoverSuccess回调通知给应用程序 @@ -559,7 +561,7 @@ bindTarget(deviceId: string, bindParam: {[key: string]: Object} , call 'bindType': 1,// 认证类型: 1 - 无帐号PIN码认证 'targetPkgName': 'xxxx', 'appName': 'xxxx', - 'appDappOperationescription': 'xxxx', + 'appOperation': 'xxxx', 'customDescription': 'xxxx' } try { -- GitLab