LocationManager
open class LocationManager: NSObject, CLLocationManagerDelegateThe LocationManager class is a wrapper around iOS’s built in location subsystem. It provides a simpler interface and customization options.
- 
                  
                  The last received known good location DeclarationSwift open var currentLocation: CLLocation?
- 
                  
                  The delegate to receive the location authorization and status callbacks DeclarationSwift open weak var delegate: LocationManagerDelegate?
- 
                  
                  Request the user give the application location access at all times. DeclarationSwift open func requestAlwaysAuthorization()
- 
                  
                  Request the user give the application location access only when in the foreground. DeclarationSwift open func requestWhenInUseAuthorization()
- 
                  
                  Asks the location subsystem if we’re currently authorized for location access while in foreground. DeclarationSwift open func isInUseAuthorized() -> BoolReturn ValueWhether or not the application is authorized. 
- 
                  
                  Asks the location subsystem if we’re currently authorized for location access at all times. DeclarationSwift open func isAlwaysAuthorized() -> BoolReturn ValueWhether or not the application is authorized. 
- 
                  
                  Refreshes the stored current location and also returns it to the caller -returns: The most current location the location system has, or nil if it has no current location. DeclarationSwift open func refreshCurrentLocation() -> CLLocation?
- 
                  
                  The difference between this function and refreshCurrentLocation()isrequestLocation()immediately returns and will serve the location via the delegateDeclarationSwift open func requestLocation()
- 
                  
                  Starts the location manager callbacks for location updates DeclarationSwift open func startUpdatingLocation()
- 
                  
                  Stops the location manager callbacks DeclarationSwift open func stopUpdatingLocation()
 View on GitHub
View on GitHub LocationManager Class Reference
        LocationManager Class Reference