-
Specifies the minimum distance (measured in meters) a device must move horizontally before a location update is generated.
The default value of this property is
kCLDistanceFilterNone.Declaration
Swift
public var distanceFilter: CLLocationDistance -
Specifies the accuracy of the location data.
The default value is
kCLLocationAccuracyBest.Declaration
Swift
public var desiredAccuracy: CLLocationAccuracy -
Sets the type of user activity associated with the location updates.
The default value is
CLActivityType.other.Declaration
Swift
public var activityType: CLActivityType -
Initializes provider options.
Declaration
Swift
public init( distanceFilter: CLLocationDistance = kCLDistanceFilterNone, desiredAccuracy: CLLocationAccuracy = kCLLocationAccuracyBest, activityType: CLActivityType = .other )Parameters
distanceFilterSpecifies the minimum distance (measured in meters) a device must move horizontally before a location update is generated.
desiredAccuracySpecifies the accuracy of the location data.
activityTypeSets the type of user activity associated with the location.
Options Structure Reference