Provides options for location monitoring.

interface Options {
    activityType?: any;
    allowsBackgroundLocationUpdates?: boolean;
    deferredLocationUpdates?: { timeout: number; traveled: number };
    desiredAccuracy?: number;
    dontOpenSettings?: boolean;
    maximumAge?: number;
    minimumUpdateTime?: number;
    nmeaAltitude?: boolean;
    onDeferred?: deferredCallbackType;
    onLocationPaused?: () => void;
    pausesLocationUpdatesAutomatically?: boolean;
    provider?: "gps" | "network" | "passive";
    skipPermissionCheck?: boolean;
    timeout?: number;
    updateDistance?: number;
}

Properties

activityType?: any

iOS only

allowsBackgroundLocationUpdates?: boolean

iOS only

deferredLocationUpdates?: { timeout: number; traveled: number }

iOS only

desiredAccuracy?: number

Specifies desired accuracy in meters. Defaults to DesiredAccuracy.HIGH

dontOpenSettings?: boolean

monitor the location in the background.

maximumAge?: number

how old locations to receive in ms.

minimumUpdateTime?: number

Minimum time interval between location updates, in milliseconds.

nmeaAltitude?: boolean
onLocationPaused?: () => void
pausesLocationUpdatesAutomatically?: boolean

iOS only

provider?: "gps" | "network" | "passive"

android only

skipPermissionCheck?: boolean

monitor the location in the background.

timeout?: number

how long to wait for a location in ms.

updateDistance?: number

Update distance filter in meters. Specifies how often to update. Default on iOS is no filter, on Android it is 0 meters