mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
[expo] Add Accuracy enum
This commit is contained in:
@@ -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;
|
||||
|
||||
Vendored
+9
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user