UNPKG

react-native-background-geolocation

Version:

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

16 lines (15 loc) 474 B
declare module "react-native-background-geolocation" { /** * The event-object provided to [[BackgroundGeolocation.onMotionChange]] when the SDK changes state between *moving* and *stationary*. */ interface MotionChangeEvent { /** * `true` when the device has begun *moving* and the SDK engaged location-tracking. `false` when *stationary*. */ isMoving: boolean; /** * The corresponding [[Location]] where the event occurred. */ location: Location; } }