From 450b1524d63d2336dc87511521b297f49c181ef6 Mon Sep 17 00:00:00 2001 From: wuxiaodong02 Date: Wed, 31 May 2023 17:03:43 +0800 Subject: [PATCH] update js-apis-device-manager.md Signed-off-by: wuxiaodong02 --- .../reference/apis/js-apis-device-manager.md | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md index 31645e2562..2270445c75 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md @@ -286,44 +286,6 @@ getTrustedDeviceListSync(): Array<DeviceInfo> console.error("getTrustedDeviceListSync errCode:" + err.code + ",errMessage:" + err.message); } ``` -### getTrustedDeviceListSync10+ - -getTrustedDeviceListSync(isRefresh: boolean): Array<DeviceInfo> - -刷新可信设备列表,让周围可信设备快速上线。 - -**系统能力**:SystemCapability.DistributedHardware.DeviceManager - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------------- | --------------------------------- | ---- | ------------------------- | -| isRefresh | boolean | 是 | 是否刷新 | - -**返回值:** - -| 名称 | 说明 | -| -------------------------------------- | ---------------- | -| Array<[DeviceInfo](#deviceinfo)> | 返回可信设备列表。 | - -**错误码:** - -以下的错误码的详细介绍请参见[设备管理错误码](../errorcodes/errorcode-device-manager.md) - -| 错误码ID | 错误信息 | -| -------- | --------------------------------------------------------------- | -| 401 | Input parameter error. | -| 11600101 | Failed to execute the function. | - -**示例:** - - ```js - try { - var deviceInfoList = dmInstance.getTrustedDeviceListSync(true); - } catch (err) { - console.error("getTrustedDeviceListSync errCode:" + err.code + ",errMessage:" + err.message); - } - ``` ### getTrustedDeviceList8+ -- GitLab