DefaultCLLocationProvider
public class DefaultCLLocationProvider : NSObject, ValidatingLocationProvider
Implementation of LocationProvider
that uses CLLocationManager
as a GPS source provider.
Important
This is a Public Preview API. It may be changed or removed at any time.-
DefaultCLLocationProvider init method.
Declaration
Swift
convenience public init( locationValidationPolicy: LocationUpdateValidator? = nil )
Parameters
locationValidationPolicy
policy for validating incoming location updates, defined by
LocationUpdateValidator
protocol.
-
Declaration
Swift
public var lastKnownLocation: GeoLocation?
-
Declaration
Swift
public var validationPolicy: LocationUpdateValidator
-
Declaration
Swift
public func enable()
-
Declaration
Swift
public func disable()
-
Declaration
Swift
public func addObserver(_ observer: LocationUpdateObserver)
-
Declaration
Swift
public func removeObserver(_ observer: LocationUpdateObserver)