UNPKG

react-native-background-geolocation

Version:

The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence

21 lines (20 loc) 588 B
declare module "react-native-background-geolocation" { /** * 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; } }