LocationProviderObservable

public protocol LocationProviderObservable : Observer

LocationProviderObservable

Important

This is a Public Preview API. It may be changed or removed at any time.
  • This method must be called whenever a new location is available with source that provides the location.

    Declaration

    Swift

    func onLocationUpdated(location: GeoLocation)
  • This method must be called whenever a new heading is available.

    Declaration

    Swift

    func onHeadingUpdate(newHeading: CLHeading, lastLocation: GeoLocation)
  • This method must be called whenever an authorization status for system location engine changes.

    Note

    The method is temporarily annotated as optional to simplify the adoption. It might become a required method in the future.

    Declaration

    Swift

    func onAuthorizationStatusChanged(isGranted: Bool)

    Parameters

    isGranted

    A state of authorization. The location engine is considered authorized if the CLLocationManager’s authorization status is CLAuthorizationStatus.authorizedAlways or CLAuthorizationStatus.authorizedWhenInUse.