From 042dd9fde5126e2386f8f26f7e03c75f8cb26305 Mon Sep 17 00:00:00 2001 From: ql Date: Fri, 25 Mar 2022 09:12:33 +0000 Subject: [PATCH] update zh-cn/application-dev/ability/stage-call.md. Signed-off-by: ql --- zh-cn/application-dev/ability/stage-call.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zh-cn/application-dev/ability/stage-call.md b/zh-cn/application-dev/ability/stage-call.md index 572fd96d37..27da4daa32 100644 --- a/zh-cn/application-dev/ability/stage-call.md +++ b/zh-cn/application-dev/ability/stage-call.md @@ -134,6 +134,8 @@ context.startAbilityByCall({ console.error(TAG + 'get caller failed with ' + error) }) ``` +获取远程Caller通信(当前仅对系统应用开放) +备注:由于DeviceManager getTrustedDeviceListSync接口仅对系统应用开放,当前连接远程Service仅支持系统应用 在跨设备场景下,需指定对端设备deviceId。具体示例代码如下: ```ts let TAG = '[MainAbility] ' @@ -158,7 +160,7 @@ context.startAbilityByCall({ console.error(TAG + 'get remote caller failed with ' + error) }) ``` -从DeviceManager获取指定设备的deviceId,getTrustedDeviceListSync接口仅对系统应用开放。具体示例代码如下: +从DeviceManager获取指定设备的deviceId。具体示例代码如下: ```ts import deviceManager from '@ohos.distributedHardware.deviceManager'; var dmClass; -- GitLab