LocationManager
public class LocationManager : NSObject
extension LocationManager: LocationProviderDelegate
An object responsible for notifying the map view about location-related events, such as a change in the device’s location.
-
Represents the latest location received from the location provider
Declaration
Swift
public private(set) var latestLocation: Location? { get }
-
The object that acts as the delegate of the location manager.
Declaration
Swift
public weak var delegate: LocationPermissionsDelegate?
-
Making variable
public private(set)
to have direct access to auth functionsDeclaration
Swift
public private(set) var locationProvider: LocationProvider! { get }
-
Property that will determine if user location visuals should be displayed or not
Declaration
Swift
public private(set) var showUserLocation: Bool { get }
-
Property that has a list of items that will consume location events The location manager holds weak references to these consumers, client code should retain these references
Declaration
Swift
public private(set) lazy var consumers: NSHashTable<LocationConsumer> { get set }
-
Undocumented
Declaration
Swift
public func overrideLocationProvider(with customLocationProvider: LocationProvider)
-
The location manager holds weak references to consumers, client code should retain these references
Declaration
Swift
public func addLocationConsumer(newConsumer consumer: LocationConsumer)
-
Undocumented
Declaration
Swift
public func removeLocationConsumer(consumer: LocationConsumer)
-
Allows a custom case to request full accuracy
Declaration
Swift
@available(iOS 14.0, *) public func requestTemporaryFullAccuracyPermissions(withPurposeKey purposeKey: String)
-
Declaration
Swift
public func locationProvider(_ provider: LocationProvider, didUpdateLocations locations: [CLLocation])
-
Declaration
Swift
public func locationProvider(_ provider: LocationProvider, didUpdateHeading newHeading: CLHeading)
-
Undocumented
Declaration
Swift
public func updateHeadingForCurrentDeviceOrientation()
-
Declaration
Swift
public func locationProvider(_ provider: LocationProvider, didFailWithError error: Error)
-
Declaration
Swift
public func locationProviderDidChangeAuthorization(_ provider: LocationProvider)