Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 7a7b512

Browse files
committed
Adding code block
Changed the description for the updateDistance property
1 parent 56b53dd commit 7a7b512

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/geolocation.android.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ function _getLocationRequest(options: Options): any {
104104
let minUpdateTime = options.minimumUpdateTime === 0 ?
105105
0 : options.minimumUpdateTime || Math.min(updateTime, fastestTimeUpdate);
106106
mLocationRequest.setFastestInterval(minUpdateTime);
107-
if (options.updateDistance)
107+
if (options.updateDistance) {
108108
mLocationRequest.setSmallestDisplacement(options.updateDistance);
109+
}
109110
if (options.desiredAccuracy === Accuracy.high) {
110111
mLocationRequest.setPriority(com.google.android.gms.location.LocationRequest.PRIORITY_HIGH_ACCURACY);
111112
} else {

src/location-monitor.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface Options {
1010
desiredAccuracy?: number;
1111

1212
/**
13-
* Update distance filter in meters. Specifies how often to update. Default on iOS is no filter (ignored on Android)
13+
* Update distance filter in meters. Specifies how often to update. Default is no filter
1414
*/
1515
updateDistance?: number;
1616

0 commit comments

Comments
 (0)