-
Registers an observer in this instance of LocationProvider. One instance of LocationProvider can have more than one observer. It is expected that LocationProvider will not start until an observer is added.
Declaration
Objective-C
- (void)addLocationObserverForObserver: (nonnull id<MBXLocationObserver>)observer;
Parameters
observer
An observer to add.
-
Removes the observer from this instance of LocationProvider. If the observer is not registered, this is no-op. It is expected that if there are no observers, the LocationProvider will stop automatically.
Declaration
Objective-C
- (void)removeLocationObserverForObserver: (nonnull id<MBXLocationObserver>)observer;
Parameters
observer
An observer to remove.
-
Gets the last observed location.
Declaration
Objective-C
- (nullable MBXLocation *)getLastObservedLocation;
Return Value
A single location or null if no location has been observed.