Skip to content

Commit 2fea60a

Browse files
committed
Update LocationManagerAsync.swift
1 parent 5fc5e83 commit 2fea60a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/d3-async-location/LocationManagerAsync.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ final class LocationManagerAsync: ILocationManagerAsync {
2121
/// - Parameters:
2222
/// - accuracy: The desired accuracy of the location data.
2323
/// - activityType: The type of user activity associated with the location updates.
24-
/// - distanceFilter: The minimum distance (in meters) that the device must move before an update event is generated.
24+
/// - distanceFilter: The minimum distance (in meters) that the device must move before an update event is generated. kCLDistanceFilterNone (equivalent to -1.0) means updates are sent regardless of the distance traveled. This is a safe default for apps that don’t require filtering updates based on distance.
2525
/// - backgroundUpdates: A Boolean value indicating whether the app should receive location updates when suspended.
2626
init(
2727
_ accuracy: CLLocationAccuracy? = kCLLocationAccuracyBest,
2828
_ activityType: CLActivityType? = .other,
29-
_ distanceFilter: CLLocationDistance?,
29+
_ distanceFilter: CLLocationDistance? = kCLDistanceFilterNone,
3030
_ backgroundUpdates: Bool = false
3131
) {
3232
delegate = LocationManagerAsync.Delegate(accuracy, activityType, distanceFilter, backgroundUpdates)

0 commit comments

Comments
 (0)