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

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

Signed-off-by: Nql <qianli16@huawei.com>
上级 9ecaf8f9
...@@ -134,7 +134,8 @@ context.startAbilityByCall({ ...@@ -134,7 +134,8 @@ context.startAbilityByCall({
console.error(TAG + 'get caller failed with ' + error) console.error(TAG + 'get caller failed with ' + error)
}) })
``` ```
在跨设备场景下,需指定对端设备deviceId,具体获取接口参照[DeviceManager](https://gitee.com/openharmony/device_manager/blob/master/README_zh.md)。应用开发者根据实际需要做相应处理。具体示例代码如下: 在跨设备场景下,需指定对端设备deviceId,具体获取接口参照[DeviceManager](https://gitee.com/openharmony/device_manager/blob/master/README_zh.md)。应用开发者
根据实际需要做相应处理。具体示例代码如下:
```ts ```ts
let TAG = '[MainAbility] ' let TAG = '[MainAbility] '
var caller = undefined var caller = undefined
...@@ -158,7 +159,7 @@ context.startAbilityByCall({ ...@@ -158,7 +159,7 @@ context.startAbilityByCall({
console.error(TAG + 'get remote caller failed with ' + error) console.error(TAG + 'get remote caller failed with ' + error)
}) })
``` ```
在跨设备场景下,需要向用户申请数据同步的权限。具体示例代码如下: 在跨设备场景下,需要向用户申请数据同步的权限。具体示例代码如下:
```ts ```ts
let context = this.context let context = this.context
let permissions = ohos.permission.DISTRIBUTED_DATASYNC let permissions = ohos.permission.DISTRIBUTED_DATASYNC
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册