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
PuckLocationConsumer
to the location manager.An instance of
PuckLocationConsumer
will get the accurate (interpolated) location of the puck as it moves, as opposed to theLocationConsumer
that gets updated only when theLocationProvider
has emitted a new location.Important
The location manager holds a weak reference to the consumer, thus client should retain these references. -
Removes a
PuckLocationConsumer
from the location manager.