LocationUpdateObserver

public protocol LocationUpdateObserver : Observer

Declares an observer that can receive location updates.

The LocationUpdateObserver protocol is used to notify observers when a new location is available. Any object that wants to receive location updates should conform to this protocol and implement the didUpdateLocation method. This allows the observer to use the updated location for various purposes such as updating UI, navigation, etc.

  • Notified when a new location is available with source that provides the location.

    This function provides the updated GeoLocation to the observer. The observer can then use this updated location for various purposes such as updating UI, navigation, etc.

    Declaration

    Swift

    func didUpdateLocation(location: GeoLocation)

    Parameters

    location

    The new GeoLocation that has been updated.