LocationManager
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.
-
The object that acts as the delegate of the location manager.
-
The current underlying location provider. Use
overrideLocationProvider(with:)to substitute a different provider. Avoid manipulating the location provider directly. LocationManager assumes full responsibility for starting and stopping location and heading updates as needed. -
The set of objects that are currently consuming location updates. The returned object is a copy of the underlying one, so mutating it will have no effect.
-
Configuration options for the location manager.
-
-
The location manager holds weak references to consumers, client code should retain these references.
-
Removes a location consumer from the location manager.
-
Adds
PuckLocationConsumerto the location manager.An instance of
PuckLocationConsumerwill get the accurate (interpolated) location of the puck as it moves, as opposed to theLocationConsumerthat gets updated only when theLocationProviderhas emitted a new location.Important
The location manager holds a weak reference to the consumer, thus client should retain these references. -
Removes a
PuckLocationConsumerfrom the location manager.
LocationManager Class Reference