[expo] Add Accuracy enum

This commit is contained in:
fhelwanger
2019-03-04 17:24:19 -03:00
parent 1dc47a2867
commit 8ddaea3e6f
2 changed files with 19 additions and 0 deletions
+10
View File
@@ -57,6 +57,16 @@ const reverseGeocode: Promise<Location.GeocodeData[]> = Location.reverseGeocodeA
longitude: 0
});
Location.watchPositionAsync({
accuracy: Location.Accuracy.BestForNavigation,
timeInterval: 10000,
distanceInterval: 0,
timeout: 10000
}, (data) => {
data.coords;
data.timestamp;
});
Accelerometer.addListener((obj) => {
obj.x;
obj.y;
+9
View File
@@ -2242,6 +2242,15 @@ export namespace Location {
function stopGeofencingAsync(taskName: string): Promise<void>;
function hasStartedGeofencingAsync(taskName: string): Promise<boolean>;
function setApiKey(key: string): void;
enum Accuracy {
Lowest = 1,
Low = 2,
Balanced = 3,
High = 4,
Highest = 5,
BestForNavigation = 6
}
}
/**