diff --git a/zh-cn/application-dev/ability/stage-call.md b/zh-cn/application-dev/ability/stage-call.md index 572fd96d37cd9b225dc4b506ea55cb131e00f618..27da4daa321b2f8dbe15caa2eaecd0c1f8c5f530 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;