UNPKG

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.

35 lines (33 loc) 866 B
/// <reference path="../types.d.ts" /> declare module "cordova-background-geolocation-lt" { /** * The event-object provided to [[BackgroundGeolocation.onActivityChange]]. * * @example * ```typescript * BackgroundGeolocation.onActivityChange(activityChangeEvent => { * console.log("[activitychange] ", activityChangeEvent.activity, activityChangeEvent.confidence); * }); * ``` */ interface MotionActivityEvent { /** * The reported device motion activity. * * | Activity Name | * |----------------| * | `still` | * | `walking` | * | `on_foot` | * | `running` | * | `on_bicycle` | * | `in_vehicle` | * | `unknown` | */ activity: MotionActivityType; /** * Confidence of the reported device motion activity in %. */ confidence: number; } }