From 35312e9a00de26e034b7732bd6e388a2d3f64d05 Mon Sep 17 00:00:00 2001 From: liu-binjun Date: Thu, 31 Aug 2023 16:42:13 +0800 Subject: [PATCH] =?UTF-8?q?arkTs=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liu-binjun --- zh-cn/application-dev/device/location-guidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/device/location-guidelines.md b/zh-cn/application-dev/device/location-guidelines.md index e58848c221..09754cbab4 100644 --- a/zh-cn/application-dev/device/location-guidelines.md +++ b/zh-cn/application-dev/device/location-guidelines.md @@ -338,7 +338,7 @@ ```ts import geoLocationManager from '@ohos.geoLocationManager'; - import wantAgent from '@ohos.app.ability.wantAgent'; + import wantAgent, {WantAgent as _wantAgent} from '@ohos.app.ability.wantAgent'; import BusinessError from "@ohos.base"; ``` @@ -347,7 +347,7 @@ 场景一:创建拉起Ability的WantAgentInfo信息。 ```ts - let wantAgentObj:wantAgent.WantAgentInfo|null = null; // 用于保存创建成功的wantAgent对象,后续使用其完成触发的动作。 + let wantAgentObj:_wantAgent|null = null; // 用于保存创建成功的wantAgent对象,后续使用其完成触发的动作。 // 通过WantAgentInfo的operationType设置动作类型 let wantAgentInfo:wantAgent.WantAgentInfo = { @@ -371,7 +371,7 @@ 场景二:创建发布[公共事件](../application-models/common-event-overview.md)的WantAgentInfo信息。 ```ts - let wantAgentObj:wantAgent.WantAgentInfo|null = null; // 用于保存创建成功的WantAgent对象,后续使用其完成触发的动作。 + let wantAgentObj:_wantAgent|null = null; // 用于保存创建成功的WantAgent对象,后续使用其完成触发的动作。 // 通过WantAgentInfo的operationType设置动作类型 let wantAgentInfo:wantAgent.WantAgentInfo = { -- GitLab