Geolocator.MovementThreshold Geolocator.MovementThreshold Geolocator.MovementThreshold Geolocator.MovementThreshold 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 : double MovementThreshold { get; set; }
double MovementThreshold();

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

Property Value

double double double

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

Additional features and requirements

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.

See also