提交 f191ff83 编写于 作者: L liu-binjun

bugfix: Modify the description of the disablelocation interface.

Signed-off-by: Nliu-binjun <liubinjun@huawei.com>
上级 6d60840f
# 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&lt;boolean&gt;) : 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&lt;boolean&gt;
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.
......
# 位置服务
位置服务提供GNSS定位、网络定位、地理编码、逆地理编码、国家码和地理围栏等基本功能。
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......@@ -695,7 +696,7 @@ enableLocation() : Promise&lt;boolean&gt;
disableLocation(callback: AsyncCallback&lt;boolean&gt;) : void;
打开位置服务,使用callback回调异步返回结果。
关闭位置服务,使用callback回调异步返回结果。
**系统API**:此接口为系统接口,三方应用不支持调用。
......@@ -722,7 +723,7 @@ disableLocation(callback: AsyncCallback&lt;boolean&gt;) : void;
disableLocation() : Promise&lt;boolean&gt;
打开位置服务,使用Promise方式异步返回结果。
关闭位置服务,使用Promise方式异步返回结果。
**系统API**:此接口为系统接口,三方应用不支持调用。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册