Contents

distanceFilter

The minimum distance in meters the device must move horizontally before an update event is generated.

Declaration

var distanceFilter: CLLocationDistance { get set }

Mentioned in

Discussion

This location manager measures this relative to the previously delivered location. Specify the value kCLDistanceFilterNone to receive notifications for all movements. The default value of this property is kCLDistanceFilterNone.

Use this property only in conjunction with the Standard location services and not with the Significant-change or Visits services.

Special Considerations

In iOS, this property is declared as nonatomic. In macOS, it is declared as atomic.

See Also

Specifying distance and accuracy