Lines Matching refs:location

5 You can call location APIs in OpenHarmony to obtain the real-time location or last known location a…
7location of the device is recommended for location-sensitive services. If you want to lower power …
11 … lists the APIs used to obtain the device location information. For details, see (../../reference/…
15 **Table 2** APIs for obtaining device location information
19 …e/apis-location-kit/js-apis-geoLocationManager.md#geolocationmanageronlocationchange) | Registers …
20location-kit/js-apis-geoLocationManager.md#geolocationmanagerofflocationchange) | Unregisters the …
21 …../../reference/apis-location-kit/js-apis-geoLocationManager.md#geolocationmanagergetcurrentlocati…
22 …./../reference/apis-location-kit/js-apis-geoLocationManager.md#geolocationmanagergetcurrentlocatio…
23 …./reference/apis-location-kit/js-apis-geoLocationManager.md#geolocationmanagergetlastlocation) | O…
24 …(../../reference/apis-location-kit/js-apis-geoLocationManager.md#geolocationmanagerislocationenabl…
28location capabilities, check whether your application has been granted the permission to access th…
30 …ionManager** module by which you can implement all APIs related to the basic location capabilities.
35 3. Call **isLocationEnabled** to check whether the location switch is enabled.
36 …The return result is a Boolean value. The value **true** indicates that the location switch is ena…
46 …If the location switch is not enabled, launch a dialog box asking the user to enable the switch. F…
48 4. Obtain the current location of the device. It is mainly used in scenarios such as viewing of the…
49 - Method 1: Obtain the latest location in the system cache.<br>
50 If the system does not have a cached location, an error code is returned.<br>
51 Using this API to obtain the device location can reduce the system power consumption.<br>
52location is expected, your application can first obtain the cached location and then compare the …
58 let location = geoLocationManager.getLastLocation();
64 - Method 2: Obtain the current location.<br>
65location-kit/js-apis-geoLocationManager.md#singlelocationrequest12) object to notify the system of…
66 - Set the location priority by using **LocatingPriority**.<br>
67 …If a precise location is required, set **LocatingPriority** to **PRIORITY_ACCURACY**. The most acc…
68 …If fast location is expected, you are advised to set **LocatingPriority** to **PRIORITY_LOCATING_S…
69 …ositioning and the network positioning technologies are used in the two location policies. This ca…
70 - Set the location timeout interval by using **locatingTimeoutMs**.<br>
71 …control policy, the location response delay may fluctuates greatly. You are advised to set the tim…
83 …n((result) => { // Call getCurrentLocation to obtain the current device location by using a promis…
84 console.log('current location: ' + JSON.stringify(result));
97 5. Obtain the device location continuously. It is mainly used in scenarios such as navigation, move…
98location-kit/js-apis-geoLocationManager.md#continuouslocationrequest12) object to notify the syste…
99 - Set the location scenario by using **locationScenario**.<br>
100location-kit/js-apis-geoLocationManager.md#useractivityscenario12). For example, if **locationScen…
101 - Set the interval for reporting location information by using **interval**.<br>
102location information is in unit of seconds. The default value is **1**. Leave this parameter unspe…
112 let locationCallback = (location:geoLocationManager.Location):void => {
113 console.log('locationCallback: data: ' + JSON.stringify(location));
121 …If your application no longer needs the device location, stop obtaining the device location to avo…