From 2bd664a92bcd5e765d6c9ec9b4fbabba9fc8d297 Mon Sep 17 00:00:00 2001 From: ql Date: Fri, 25 Mar 2022 03:35:36 +0000 Subject: [PATCH] update zh-cn/application-dev/ability/stage-call.md. Signed-off-by: ql --- zh-cn/application-dev/ability/stage-call.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zh-cn/application-dev/ability/stage-call.md b/zh-cn/application-dev/ability/stage-call.md index bbfbf6e652..9fc6cd8678 100644 --- a/zh-cn/application-dev/ability/stage-call.md +++ b/zh-cn/application-dev/ability/stage-call.md @@ -160,6 +160,8 @@ context.startAbilityByCall({ ``` 从DeviceManager获取指定设备的deviceId,具体示例代码如下: ```ts +import deviceManager from '@ohos.distributedHardware.deviceManager'; +var dmClass; function getRemoteDeviceId() { if (typeof dmClass === 'object' && dmClass != null) { var list = dmClass.getTrustedDeviceListSync(); -- GitLab