starti.app 2.0.52 → 2.0.53
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.
|
@@ -15,26 +15,28 @@ export declare class Location extends EventTargetWithType<{
|
|
|
15
15
|
* @param options - The options for retrieving the location.
|
|
16
16
|
* @returns A promise that resolves to the current location.
|
|
17
17
|
*/
|
|
18
|
-
getLocation(options?: LocationOptions)
|
|
18
|
+
getLocation: (options?: LocationOptions) => Promise<LocationDto>;
|
|
19
19
|
/**
|
|
20
20
|
* Starts the location listener.
|
|
21
21
|
*
|
|
22
22
|
* @param options - The options for location listening.
|
|
23
23
|
* @returns A promise that resolves when the location listener has started.
|
|
24
24
|
*/
|
|
25
|
-
startLocationListener(options?: LocationListeningOptions)
|
|
25
|
+
startLocationListener: (options?: LocationListeningOptions) => Promise<boolean>;
|
|
26
26
|
/**
|
|
27
27
|
* Checks if the location listener is active.
|
|
28
28
|
* @returns True if the location listener is active, false otherwise.
|
|
29
29
|
*/
|
|
30
|
-
isLocationListenerActive()
|
|
30
|
+
isLocationListenerActive: () => Promise<boolean>;
|
|
31
31
|
/**
|
|
32
32
|
* Stops the location listener.
|
|
33
33
|
*/
|
|
34
|
-
stopLocationListener()
|
|
35
|
-
createGeofence(region: GeofenceRegion)
|
|
36
|
-
removeGeofence(region: GeofenceRegion)
|
|
37
|
-
getGeofences()
|
|
34
|
+
stopLocationListener: () => Promise<void>;
|
|
35
|
+
createGeofence: (region: GeofenceRegion) => Promise<void>;
|
|
36
|
+
removeGeofence: (region: GeofenceRegion) => Promise<void>;
|
|
37
|
+
getGeofences: () => Promise<GeofenceRegion[]>;
|
|
38
|
+
requestAccess: () => Promise<PermissionStatus>;
|
|
39
|
+
checkAccess: () => Promise<PermissionStatus>;
|
|
38
40
|
private onListeningFailed;
|
|
39
41
|
private onLocationChanged;
|
|
40
42
|
private onGeofenceEvent;
|
package/dist/integrations.d.ts
CHANGED
|
@@ -119,6 +119,8 @@ type LocationIntegration = {
|
|
|
119
119
|
createGeofence(region: GeofenceRegion): void;
|
|
120
120
|
removeGeofence(region: GeofenceRegion): void;
|
|
121
121
|
getGeofences(): GeofenceRegion[];
|
|
122
|
+
requestAccess(): PermissionStatus;
|
|
123
|
+
checkAccess(): PermissionStatus;
|
|
122
124
|
};
|
|
123
125
|
export type Integrations = {
|
|
124
126
|
"AppIntegration": AppIntegration;
|
package/package.json
CHANGED