From f191ff831ab4999eb7bc975a162c809b1f8821c7 Mon Sep 17 00:00:00 2001 From: liu-binjun Date: Thu, 23 Jun 2022 15:16:20 +0800 Subject: [PATCH] bugfix: Modify the description of the disablelocation interface. Signed-off-by: liu-binjun --- en/application-dev/reference/apis/js-apis-geolocation.md | 5 +++-- zh-cn/application-dev/reference/apis/js-apis-geolocation.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-geolocation.md b/en/application-dev/reference/apis/js-apis-geolocation.md index 7d4694bfa7..01a012065a 100644 --- a/en/application-dev/reference/apis/js-apis-geolocation.md +++ b/en/application-dev/reference/apis/js-apis-geolocation.md @@ -1,5 +1,6 @@ # Geolocation +Location services provide basic functions such as GNSS positioning, network positioning, geocoding, reverse geocoding, country code and geofencing. > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -695,7 +696,7 @@ This is a system API and cannot be called by third-party applications. disableLocation(callback: AsyncCallback<boolean>) : void; -Enables the location service. This API uses an asynchronous callback to return the result. +Disables the location service. This API uses an asynchronous callback to return the result. This is a system API and cannot be called by third-party applications. @@ -722,7 +723,7 @@ This is a system API and cannot be called by third-party applications. disableLocation() : Promise<boolean> -Enables the location service. This API uses a promise to return the result. +Disables the location service. This API uses a promise to return the result. This is a system API and cannot be called by third-party applications. diff --git a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md index 171e328299..77ef5727a7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md @@ -1,5 +1,6 @@ # 位置服务 +位置服务提供GNSS定位、网络定位、地理编码、逆地理编码、国家码和地理围栏等基本功能。 > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -695,7 +696,7 @@ enableLocation() : Promise<boolean> disableLocation(callback: AsyncCallback<boolean>) : void; -打开位置服务,使用callback回调异步返回结果。 +关闭位置服务,使用callback回调异步返回结果。 **系统API**:此接口为系统接口,三方应用不支持调用。 @@ -722,7 +723,7 @@ disableLocation(callback: AsyncCallback<boolean>) : void; disableLocation() : Promise<boolean> -打开位置服务,使用Promise方式异步返回结果。 +关闭位置服务,使用Promise方式异步返回结果。 **系统API**:此接口为系统接口,三方应用不支持调用。 -- GitLab