Share via


Geolocator.MovementThreshold Property

Definition

The distance of movement, in meters, relative to the coordinate from the last PositionChanged event, that is required for the Geolocator to raise a PositionChanged event.

public:
 property double MovementThreshold { double get(); void set(double value); };
double MovementThreshold();

void MovementThreshold(double value);
public double MovementThreshold { get; set; }
var double = geolocator.movementThreshold;
geolocator.movementThreshold = double;
Public Property MovementThreshold As Double

Property Value

Double

double

The distance of required movement, in meters, for location services to raise a PositionChanged event. The default value is 0.

Windows requirements

App capabilities
location ID_CAP_LOCATION [Windows Phone]

Remarks

The default report interval is 1 second or as frequent as the hardware can support – whichever is shorter. Location updates can be set to a different frequency if you specify a MovementThreshold or set ReportInterval to a different value. If your app sets both MovementThreshold and ReportInterval, location will be updated according to MovementThreshold.

Applies to

See also