未验证 提交 c72468d8 编写于 作者: Q ql 提交者: Gitee

update zh-cn/application-dev/ability/stage-call.md.

Signed-off-by: Nql <qianli16@huawei.com>
上级 bbad58dd
...@@ -134,7 +134,7 @@ context.startAbilityByCall({ ...@@ -134,7 +134,7 @@ context.startAbilityByCall({
console.error(TAG + 'get caller failed with ' + error) console.error(TAG + 'get caller failed with ' + error)
}) })
``` ```
在跨设备场景下,需指定对端设备deviceId。应用开发者 根据实际需要做相应处理。具体示例代码如下: 在跨设备场景下,需指定对端设备deviceId。具体示例代码如下:
```ts ```ts
let TAG = '[MainAbility] ' let TAG = '[MainAbility] '
var caller = undefined var caller = undefined
...@@ -158,7 +158,7 @@ context.startAbilityByCall({ ...@@ -158,7 +158,7 @@ context.startAbilityByCall({
console.error(TAG + 'get remote caller failed with ' + error) console.error(TAG + 'get remote caller failed with ' + error)
}) })
``` ```
从DeviceManager获取指定设备的deviceId,具体示例代码如下: 从DeviceManager获取指定设备的deviceId,getTrustedDeviceListSync接口仅对系统应用开放。具体示例代码如下:
```ts ```ts
import deviceManager from '@ohos.distributedHardware.deviceManager'; import deviceManager from '@ohos.distributedHardware.deviceManager';
var dmClass; var dmClass;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册