cordova-background-geolocation-lt
Version:
Cordova / Capacitor Background Geolocation. The most sophisticated, cross-platform location-tracking and geofencing plugin with battery-conscious motion-detection intelligence.
21 lines (20 loc) • 586 B
TypeScript
declare module "cordova-background-geolocation-lt" {
/**
* The event-object provided to [[BackgroundGeolocation.onHeartbeat]]
*
* @example
* ```typescript
* BackgroundGeolocation.onHeartbeat(heartbeatEvent => {
* console.log("[heartbeat] ", heartbeatEvent);
* });
* ```
*/
interface HeartbeatEvent {
/**
* The last-known location.
* ### ⚠️ Note:
* - The *heartbeat* event does not actively engage location-services. If you wish to get the current location in your `callback`, use [[getCurrentPosition]].
*/
location: Location;
}
}