forked from mauron85/react-native-background-geolocation
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBackgroundGeolocation.Promise.d.ts
More file actions
30 lines (26 loc) · 908 Bytes
/
BackgroundGeolocation.Promise.d.ts
File metadata and controls
30 lines (26 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/// <reference path="node_modules/react-native-mauron85-background-geolocation/index.d.ts" />
// Type definitions for react-native-mauron85-background-geolocation
// Project: https://github.com/mauron85/react-native-background-geolocation
// Definitions by: Mauron85 (@mauron85)
// Definitions: https://github.com/mauron85/react-native-background-geolocation/blob/master/index.d.ts
namespace BackgroundGeolocationPlugin {
export interface LocationZ {
speed: number
}
/**
* One time location check to get current location of the device.
*
* Error codes:
* 1. PERMISSION_DENIED
* 2. LOCATION_UNAVAILABLE
* 3. TIMEOUT
*
* @param success
* @param fail
* @param options
*/
export function getCurrentLocationAsync(
options?: PositionOptions
): Promise<Location>;
}
export { BackgroundGeolocationPlugin as BackgroundGeolocation }