From 50de7b119bb2465fbda1dd2f75f490b9fb925d09 Mon Sep 17 00:00:00 2001 From: ql Date: Fri, 25 Mar 2022 09:10:17 +0000 Subject: [PATCH] update zh-cn/application-dev/ability/stage-ability.md. Signed-off-by: ql --- zh-cn/application-dev/ability/stage-ability.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zh-cn/application-dev/ability/stage-ability.md b/zh-cn/application-dev/ability/stage-ability.md index 565b0351c2..72d0a89ffc 100644 --- a/zh-cn/application-dev/ability/stage-ability.md +++ b/zh-cn/application-dev/ability/stage-ability.md @@ -164,6 +164,7 @@ context.startAbility(want, options).then((data) => { ``` ### 跨设备启动Ability(当前仅对系统应用开放) +备注:由于DeviceManager getTrustedDeviceListSync接口仅对系统应用开放,当前跨设备启动Ability仅支持系统应用 跨设备场景下,需指定对端设备deviceId,具体示例代码如下: ```ts let context = this.context @@ -178,7 +179,7 @@ context.startAbility(want).then((data) => { console.error("Failed to start remote ability with error: "+ JSON.stringify(error)) }) ``` -从DeviceManager获取指定设备的deviceId,具体示例代码如下: +从DeviceManager获取指定设备的deviceId。具体示例代码如下: ```ts import deviceManager from '@ohos.distributedHardware.deviceManager'; function getRemoteDeviceId() { -- GitLab