@transistorsoft/capacitor-background-geolocation 8.0.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/Package.swift +10 -16
  2. package/README.md +99 -211
  3. package/TransistorsoftCapacitorBackgroundGeolocation.podspec +7 -5
  4. package/android/build.gradle +16 -54
  5. package/android/src/main/java/com/transistorsoft/bggeo/capacitor/BackgroundGeolocationPlugin.java +132 -70
  6. package/dist/index.js +198 -189
  7. package/dist/index.js.map +1 -1
  8. package/dist/plugin.cjs.js +255 -205
  9. package/dist/plugin.cjs.js.map +1 -1
  10. package/dist/plugin.js +1141 -1092
  11. package/dist/plugin.js.map +1 -1
  12. package/ios/Sources/BackgroundGeolocationPlugin/BackgroundGeolocationPlugin.swift +353 -306
  13. package/package.json +11 -12
  14. package/src/index.d.ts +10 -0
  15. package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.aar +0 -0
  16. package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.aar.md5 +0 -1
  17. package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.aar.sha1 +0 -1
  18. package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.aar.sha256 +0 -1
  19. package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.aar.sha512 +0 -1
  20. package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.pom +0 -9
  21. package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.pom.md5 +0 -1
  22. package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.pom.sha1 +0 -1
  23. package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.pom.sha256 +0 -1
  24. package/android/libs/com/transistorsoft/tslocationmanager/3.7.0/tslocationmanager-3.7.0.pom.sha512 +0 -1
  25. package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +0 -13
  26. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.aar +0 -0
  27. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.aar.md5 +0 -1
  28. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.aar.sha1 +0 -1
  29. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.aar.sha256 +0 -1
  30. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.aar.sha512 +0 -1
  31. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.pom +0 -9
  32. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.pom.md5 +0 -1
  33. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.pom.sha1 +0 -1
  34. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.pom.sha256 +0 -1
  35. package/android/libs/com/transistorsoft/tslocationmanager-v21/3.7.0/tslocationmanager-v21-3.7.0.pom.sha512 +0 -1
  36. package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +0 -13
  37. package/dist/Events.js +0 -19
  38. package/dist/Events.js.map +0 -1
  39. package/dist/declarations/BackgroundGeolocation.d.ts +0 -1632
  40. package/dist/declarations/interfaces/Authorization.d.ts +0 -185
  41. package/dist/declarations/interfaces/AuthorizationEvent.d.ts +0 -34
  42. package/dist/declarations/interfaces/Config.d.ts +0 -2474
  43. package/dist/declarations/interfaces/ConnectivityChangeEvent.d.ts +0 -18
  44. package/dist/declarations/interfaces/CurrentPositionRequest.d.ts +0 -45
  45. package/dist/declarations/interfaces/DeviceInfo.d.ts +0 -33
  46. package/dist/declarations/interfaces/DeviceSettings.d.ts +0 -223
  47. package/dist/declarations/interfaces/Geofence.d.ts +0 -319
  48. package/dist/declarations/interfaces/GeofenceEvent.d.ts +0 -35
  49. package/dist/declarations/interfaces/GeofencesChangeEvent.d.ts +0 -22
  50. package/dist/declarations/interfaces/HeartbeatEvent.d.ts +0 -20
  51. package/dist/declarations/interfaces/HttpEvent.d.ts +0 -313
  52. package/dist/declarations/interfaces/Location.d.ts +0 -257
  53. package/dist/declarations/interfaces/LocationAuthorizationAlert.d.ts +0 -41
  54. package/dist/declarations/interfaces/Logger.d.ts +0 -359
  55. package/dist/declarations/interfaces/MotionActivityEvent.d.ts +0 -34
  56. package/dist/declarations/interfaces/MotionChangeEvent.d.ts +0 -15
  57. package/dist/declarations/interfaces/Notification.d.ts +0 -491
  58. package/dist/declarations/interfaces/PermissionRationale.d.ts +0 -31
  59. package/dist/declarations/interfaces/ProviderChangeEvent.d.ts +0 -74
  60. package/dist/declarations/interfaces/SQLQuery.d.ts +0 -60
  61. package/dist/declarations/interfaces/Sensors.d.ts +0 -31
  62. package/dist/declarations/interfaces/State.d.ts +0 -51
  63. package/dist/declarations/interfaces/Subscription.d.ts +0 -104
  64. package/dist/declarations/interfaces/TransistorAuthorizationToken.d.ts +0 -63
  65. package/dist/declarations/interfaces/WatchPositionRequest.d.ts +0 -45
  66. package/dist/declarations/types.d.ts +0 -188
  67. package/dist/index.d.ts +0 -3
@@ -1,51 +0,0 @@
1
- /// <reference path="./Config.d.ts" />
2
-
3
- declare module "@transistorsoft/capacitor-background-geolocation" {
4
- /**
5
- * This `State` object contains all the provided [[Config]] options in addition to:
6
- * - [[enabled]].
7
- * - [[schedulerEnabled]].
8
- * - [[trackingMode]].
9
- * - [[odometer]].
10
- * - [[didLaunchInBackground]].
11
- * - [[didDeviceReboot]]
12
- */
13
- interface State extends Config {
14
- /**
15
- * `true` when the SDK has been enabled via methods [[start]] or [[startGeofences]]. When `false`, the
16
- * SDK is completely __OFF__. No tracking of any kind will occur. The SDK will consume no energy.
17
- */
18
- enabled: boolean;
19
- /**
20
- * `true` when the SDK is currently configured with a [[schedule]] and [[startSchedule]] has been executed.
21
- * [[stopSchedule]] will set this to `false`.
22
- */
23
- schedulerEnabled: boolean;
24
- /**
25
- | Value | Description |
26
- |------------|-----------------------------------|
27
- | __`0`__ | Monitoring geofences only |
28
- | __`1`__ | Monitoring location + geofences |
29
- */
30
- trackingMode: TrackingMode;
31
- /**
32
- * The current distance-traveled.
33
- * ### ℹ️ See also:
34
- * - [[resetOdometer]], [[setOdometer]]
35
- * - [[getOdometer]]
36
- */
37
- odometer: number;
38
- /**
39
- * `true` when the iOS app was launched in the background. Always `false` for Android.
40
- * iOS apps can be launched in the background due to a background-fetch event, geofence events or exiting the [[Config.stationaryRadius]].
41
- *
42
- * One might use this flag to choose to load only minimal resources until the iOS app is determined to have launched into the foreground.
43
- *
44
- */
45
- didLaunchInBackground: boolean;
46
- /**
47
- * Indicates if the app was launched after the device was rebooted.
48
- */
49
- didDeviceReboot: boolean;
50
- }
51
- }
@@ -1,104 +0,0 @@
1
- declare module "@transistorsoft/capacitor-background-geolocation" {
2
- /**
3
- * Object returned by BackgroundGeolocation event-listeners. `Subscription` contains just a single method [[remove]], used for removing an event-listener.
4
- *
5
- * - [[BackgroundGeolocation.onLocation]]
6
- * - [[BackgroundGeolocation.onMotionChange]]
7
- * - [[BackgroundGeolocation.onHttp]]
8
- * - [[BackgroundGeolocation.onHeartbeat]]
9
- * - [[BackgroundGeolocation.onProviderChange]]
10
- * - [[BackgroundGeolocation.onActivityChange]]
11
- * - [[BackgroundGeolocation.onGeofence]]
12
- * - [[BackgroundGeolocation.onGeofencesChange]]
13
- * - [[BackgroundGeolocation.onEnabledChange]]
14
- * - [[BackgroundGeolocation.onConnectivityChange]]
15
- * - [[BackgroundGeolocation.onSchedule]]
16
- * - [[BackgroundGeolocation.onPowerSaveChange]]
17
- * - [[BackgroundGeolocation.onNotificationAction]]
18
- * - [[BackgroundGeolocation.onAuthorization]]
19
- *
20
- * In the past, one would remove event-listeners using the __now-deprectated__ [[BackgroundGeolocation.removeListener]].
21
- *
22
- * ## Removing an event-listener:
23
- *
24
- * @example
25
- * ```typescript
26
- * // Event-listeners return a Subscription instance, containing a .remove() method.
27
- * const subscription = BackgroundGeolocation.onLocation(location => {
28
- * console.log("[onLocation] ", location);
29
- * });
30
- * .
31
- * .
32
- * .
33
- * // Later, to remove the event-listener:
34
- * subscription.remove();
35
- * ```
36
- *
37
- * One might typically manage a collection of `Subscription` instances
38
- *
39
- * @example
40
- * ```typescript
41
- * import BackgroundGeolocation, {
42
- * Location,
43
- * Subscription
44
- * } from ...
45
- *
46
- * // Your custom Collection of Subscription instances.
47
- * const SUBSCRIPTIONS = [];
48
- *
49
- * // Your custom method to push a Subscription instance.
50
- * const subscribe = (subscription:Subscription) => {
51
- * SUBSCRIPTIONS.push(subscription);
52
- * }
53
- *
54
- * // Your custom method to interate your SUBSCRIPTIONS and .remove each.
55
- * const unsubscribe = () => {
56
- * SUBSCRIPTIONS.forEach((subscription:Subscription) => subscription.remove());
57
- * }
58
- *
59
- * const initBackgroundGeolocation = () {
60
- * // Create event-listeners as usual, feeding the returned Subscription into
61
- * // your custom subscribe() method.
62
- * subscribe(BackgroundGeolocation.onLocation((location:Location) => {
63
- * console.log('[onLocation]', location);
64
- * });
65
- *
66
- * subscribe(BackgroundGeolocation.onMotionChange((location:Location) => {
67
- * console.log('[onMotionChange]', location);
68
- * });
69
- *
70
- * subscribe(BackgroundGeolocation.onEnabledChange((enabled:boolean) => {
71
- * console.log('[onEnabledChange]', enabled);
72
- * });
73
- * }
74
- *
75
- * const onDestroyView = () => {
76
- * // Call your custom unsubscribe method
77
- * unsubscribe();
78
- * }
79
- *
80
- * ```
81
- */
82
- interface Subscription {
83
- /**
84
- * Removes a `BackgroundGeolocation` event-listener.
85
- * @example
86
- * ```typescript
87
- * // Event-listeners return a Subscription instance, containing a .remove() method.
88
- * const onLocationSubscription = BackgroundGeolocation.onLocation(location => {
89
- * console.log("[onLocation] ", location);
90
- * });
91
- *
92
- * const onGeofenceSubscription = BackgroundGeolocation.onGeofence(event => {
93
- * console.log("[onGeofence] ", event);
94
- * });
95
- * .
96
- * .
97
- * .
98
- * // Later, removing event-listeners.
99
- * onLocationSubscription.remove();
100
- * onGeofenceSubscription.remove();
101
- */
102
- remove():void;
103
- }
104
- }
@@ -1,63 +0,0 @@
1
- declare module "@transistorsoft/capacitor-background-geolocation" {
2
- /**
3
- * Response object returned by [[BackgroundGeolocation.findOrCreateTransistorAuthorizationToken]] for configuring the SDK's [[Authorization]] with Transistor Software's Demo Server at [http://tracker.transistorsoft.com](http://tracker.transistorsoft.com).
4
- *
5
- * You may also run your own instance of Demo Server locally. See [background-geolocation-console](https://github.com/transistorsoft/background-geolocation-console)
6
- *
7
- * The test server is a great way to debug location problems or evalute the SDK's behaviour, since the results can easily be shared with *Transistor Software* when requesting support.
8
- *
9
- * ![](https://dl.dropboxusercontent.com/s/3abuyyhioyypk8c/screenshot-tracker-transistorsoft.png?dl=1)
10
- *
11
- *
12
- * @example
13
- * ```typescript
14
- * // Url to demo server.
15
- * let url = "http://tracker.transistorsoft.com";
16
- * let orgname = "my-company-name";
17
- * let username = "my-username";
18
- *
19
- * // Fetch an authoriztion token from server. The SDK will cache the received token.
20
- * let token = await
21
- * BackgroundGeolocation.findOrCreateTransistorAuthorizationToken(orgname, username, url);
22
- *
23
- * BackgroundGeolocation.ready({
24
- * transistorAuthorizationToken: token
25
- * })
26
- * ```
27
- *
28
- * ## Viewing Your Tracking Results
29
- *
30
- * To *view* your tracking results in the browser, use your configured "Organization Name" and visit:
31
- *
32
- * http://tracker.transistorsoft.com/my-organization-name
33
- *
34
- */
35
- interface TransistorAuthorizationToken {
36
- /**
37
- * The authorization token to provide to [[Authorization.accessToken]]
38
- *
39
- * @example
40
- * ```typescript
41
- * BackgroundGeolocation.ready({
42
- * authorization: {
43
- * accessToken:
44
- * }
45
- * });
46
- * ```
47
- */
48
- accessToken:string;
49
- /**
50
- * The token used to request to provide to [[Authorization.refreshToken]]
51
- */
52
- refreshToken:string;
53
- /**
54
- * The expiry time of the [[Authorization.accessToken]]
55
- */
56
- expires:number;
57
- /**
58
- * The url to the Transistor Demo server where this token came from.
59
- * __Read only__
60
- */
61
- url?: string;
62
- }
63
- }
@@ -1,45 +0,0 @@
1
- declare module "@transistorsoft/capacitor-background-geolocation" {
2
- /**
3
- * Options provided to [[BackgroundGeolocation.watchPosition]].
4
- *
5
- * @example
6
- * ```typescript
7
- * BackgroundGeolocation.watchPosition((location) => {
8
- * console.log("[watchPosition] -", location);
9
- * }, (errorCode) => {
10
- * console.log("[watchPosition] ERROR -", errorCode);
11
- * }, {
12
- * interval: 1000,
13
- * desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
14
- * persist: true,
15
- * extras: {foo: "bar"},
16
- * timeout: 60000
17
- * });
18
- * ```
19
- */
20
- interface WatchPositionRequest {
21
- /**
22
- * Location update interval in `milliseconds`. Defaults to `1000`.
23
- */
24
- interval?: number;
25
- /**
26
- * Specifies the accuracy required. See [[Config.desiredAccuracy]]. Only [[BackgroundGeolocation.DESIRED_ACCURACY_HIGH]] uses GPS.
27
- * Defaults to [[DESIRED_ACCURACY_HIGH]].
28
- */
29
- desiredAccuracy?: LocationAccuracy;
30
- /**
31
- * Set `true` to persist each recorded location to the plugin's database.
32
- * Defaults to `true` when [[State.enabled]], `false` otherwise.
33
- */
34
- persist?: boolean;
35
- /**
36
- * Arbitrary key/values to append to each recorded location.
37
- */
38
- extras?: Extras;
39
- /**
40
- * Time in `milliseconds` to wait before firing error callback when location fails to arrive.
41
- * Defaults to `60000`.
42
- */
43
- timeout?: number;
44
- }
45
- }
@@ -1,188 +0,0 @@
1
- declare module "@transistorsoft/capacitor-background-geolocation" {
2
- /**
3
- * Recognized event names available as constants upon the [[BackgroundGeolocation]] class.
4
- *
5
- * ```javascript
6
- * // eg
7
- * BackgroundGeolocation.EVENT_LOCATION)
8
- * > "location"
9
- *
10
- * BackgoundGeolocation.EVENT_MOTIONCHANGE;
11
- * > "motionchange"
12
- *
13
- * ```
14
- *
15
- * | Name | Value |
16
- * |-------------------------------------|-----------|
17
- * | [[EVENT_BOOT]] | `boot` |
18
- * | [[EVENT_TERMINATE]] | `terminate` |
19
- * | [[EVENT_LOCATION]] | `location` |
20
- * | [[EVENT_MOTIONCHANGE]] | `motionchange` |
21
- * | [[EVENT_HTTP]] | `http` |
22
- * | [[EVENT_HEARTBEAT]] | `heartbeat` |
23
- * | [[EVENT_PROVIDERCHANGE]] | `providerchange` |
24
- * | [[EVENT_ACTIVITYCHANGE]] | `activitychange` |
25
- * | [[EVENT_GEOFENCE]] | `geofence` |
26
- * | [[EVENT_GEOFENCESCHANGE]] | `geofenceschange` |
27
- * | [[EVENT_ENABLEDCHANGE]] | `enabledchange` |
28
- * | [[EVENT_CONNECTIVITYCHANGE]] | `connectivitychange` |
29
- * | [[EVENT_SCHEDULE]] | `schedule` |
30
- * | [[EVENT_POWERSAVECHANGE]] | `powersavechange` |
31
- * | [[EVENT_NOTIFICATIONACTION]] | `notificationaction` |
32
- * | [[EVENT_AUTHORIZATION]] | `authorization` |
33
- */
34
- export type Event = "boot"
35
- | "terminate"
36
- | "location"
37
- | "motionchange"
38
- | "http"
39
- | "heartbeat"
40
- | "providerchange"
41
- | "activitychange"
42
- | "geofence"
43
- | "geofenceschange"
44
- | "enabledchange"
45
- | "connectvitychange"
46
- | "schedule"
47
- | "powersavechange"
48
- | "notificationaction"
49
- | "authorization";
50
-
51
- /**
52
- * Controls the volume of [[Config.logLevel]] log-entries recorded to database.
53
- *
54
- * | Label |
55
- * |----------------------------|
56
- * | [[LOG_LEVEL_OFF]] |
57
- * | [[LOG_LEVEL_ERROR]] |
58
- * | [[LOG_LEVEL_WARNING]] |
59
- * | [[LOG_LEVEL_INFO]] |
60
- * | [[LOG_LEVEL_DEBUG]] |
61
- * | [[LOG_LEVEL_VERBOSE]] |
62
- */
63
- export type LogLevel = 0 | 1 | 2 | 3 | 4 | 5;
64
-
65
- /**
66
- * Used for [[Config.desiredAccuracy]].
67
- *
68
- * | Name | Location Providers | Description |
69
- * |--------------------------------------|------------------------------|-----------------------------------------|
70
- * | [[DESIRED_ACCURACY_NAVIGATION]] | (**iOS only**) GPS + Wifi + Cellular | Highest power; highest accuracy.|
71
- * | [[DESIRED_ACCURACY_HIGH]] | GPS + Wifi + Cellular | Highest power; highest accuracy. |
72
- * | [[DESIRED_ACCURACY_MEDIUM]] | Wifi + Cellular | Medium power; Medium accuracy; |
73
- * | [[DESIRED_ACCURACY_LOW]] | Wifi (low power) + Cellular | Lower power; No GPS. |
74
- * | [[DESIRED_ACCURACY_VERY_LOW]] | Cellular only | Lowest power; lowest accuracy. |
75
- * | [[DESIRED_ACCURACY_LOWEST]] | (**iOS only**) | Lowest power; lowest accuracy. |
76
- */
77
- type LocationAccuracy = -2 | -1 | 0 | 10 | 100 | 1000 | 3000;
78
-
79
- /**
80
- * Used for [[Notification.priority]].
81
- *
82
- * | Value | Description |
83
- * |-----------------------------------|--------------------------------------------------------------------------------------------------------|
84
- * | [[NOTIFICATION_PRIORITY_DEFAULT]] | Notification weighted to top of list; notification-bar icon weighted left. |
85
- * | [[NOTIFICATION_PRIORITY_HIGH]] | Notification **strongly** weighted to top of list; notification-bar icon **strongly** weighted to left.|
86
- * | [[NOTIFICATION_PRIORITY_LOW]] | Notification weighted to bottom of list; notification-bar icon weighted right. |
87
- * | [[NOTIFICATION_PRIORITY_MAX]] | Same as `NOTIFICATION_PRIORITY_HIGH`. |
88
- * | [[NOTIFICATION_PRIORITY_MIN]] | Notification **strongly** weighted to bottom of list; notification-bar icon **hidden**. |
89
- */
90
- type NotificationPriority = 0 | 1 | -1 | 2 | -2;
91
-
92
- /**
93
- * Used for [[Config.activityType]].
94
- *
95
- * | Name |
96
- * |------------------------------------------|
97
- * | [[ACTIVITY_TYPE_OTHER]] |
98
- * | [[ACTIVITY_TYPE_AUTOMOTIVE_NAVIGATION]] |
99
- * | [[ACTIVITY_TYPE_FITNESS]] |
100
- * | [[ACTIVITY_TYPE_OTHER_NAVIGATION]] |
101
- * | [[ACTIVITY_TYPE_AIRBORNE]]
102
- *
103
- * ℹ️ For more information, see [Apple docs](https://developer.apple.com/reference/corelocation/cllocationmanager/1620567-activitytype?language=objc).
104
- */
105
- type ActivityType = 1 | 2 | 3 | 4;
106
- /**
107
- * | Name | Platform |
108
- * |-----------------------------------------|---------------|
109
- * | [[AUTHORIZATION_STATUS_NOT_DETERMINED]] | iOS only |
110
- * | [[AUTHORIZATION_STATUS_RESTRICTED]] | iOS only |
111
- * | [[AUTHORIZATION_STATUS_DENIED]] | iOS & Android |
112
- * | [[AUTHORIZATION_STATUS_ALWAYS]] | iOS & Android |
113
- * | [[AUTHORIZATION_STATUS_WHEN_IN_USE]] | iOS & Android 10+ |
114
- */
115
- type AuthorizationStatus = 0 | 1 | 2 | 3 | 4;
116
-
117
- /**
118
- * | Name | Value |
119
- * |-----------------------------------------|-----------|
120
- * | [[ACCURACY_AUTHORIZATION_FULL]] | 0 |
121
- * | [[ACCURACY_AUTHORIZATION_REDUCED]] | 1 |
122
- */
123
- type AccuracyAuthorization = 0 | 1;
124
-
125
- /**
126
- * | Value | Description |
127
- * |----------|-----------------------------------------------------------------------|
128
- * | `0` | Geofences-only monitoring ([[BackgroundGeolocation.startGeofences]]). |
129
- * | `1` | Both location & Geofence monitoring. |
130
- */
131
- type TrackingMode = 0 | 1;
132
-
133
- /**
134
- * When native location API fails to fetch a location, one of the following error-codes will be returned.
135
- *
136
- * | Code | Error |
137
- * |-------|-----------------------------|
138
- * | 0 | Location unknown |
139
- * | 1 | Location permission denied |
140
- * | 2 | Network error |
141
- * | 3 | Attempt to initiate location-services in background with WhenInUse authorization |
142
- * | 408 | Location timeout |
143
- * | 499 | Location request cancelled |
144
- */
145
- type LocationError = 0 | 1 | 2 | 3 | 408 | 499;
146
-
147
- /**
148
- * iOS Location authorization request.
149
- * This is used to express the location authorization you *expect* the user have enabled.
150
- */
151
- type LocationAuthorizationRequest = "Always" | "WhenInUse" | "Any";
152
-
153
- /**
154
- * Desired HTTP method to use when uploading data to your configured [[Config.url]].
155
- */
156
- type HttpMethod = "POST" | "PUT" | "OPTIONS";
157
-
158
- type PersistMode = -1 | 0 | 1 | 2;
159
-
160
- type Extras = {[key: string]: string|null|number|boolean|Extras|string[]|number[]|number[][]|boolean[]|Extras[]};
161
-
162
- /**
163
- * Controls ordering of [[SQLQuery.order]]
164
- *
165
- * | Name | Value |
166
- * |----------------------|-------|
167
- * | [[Logger.ORDER_ASC]] | `1` |
168
- * | [[Logger.ORDER_DESC]]| `-1` |
169
- */
170
- type SQLQueryOrder = -1 | 1;
171
-
172
- /**
173
- * List of valid Motion-activity types
174
- *
175
- * | Activity Name |
176
- * |----------------|
177
- * | `still` |
178
- * | `walking` |
179
- * | `on_foot` |
180
- * | `running` |
181
- * | `on_bicycle` |
182
- * | `in_vehicle` |
183
- * | `unknown` |
184
- *
185
- * - See [[onActivityChange]] and [[Location.activity]].
186
- */
187
- type MotionActivityType = "unknown" | "still" | "walking" | "on_foot" | "running" | "on_bicycle" | "in_vehicle";
188
- }
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- /// <reference path="./declarations/BackgroundGeolocation.d.ts" />
2
-
3
- declare module "@transistorsoft/capacitor-background-geolocation" {}