public protocol LocationProviderObservable : Observer
ImportantThis 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.
func onLocationUpdated(location: GeoLocation)
This method must be called whenever a new heading is available.
func onHeadingUpdate(newHeading: CLHeading, lastLocation: GeoLocation)
This method must be called whenever an authorization status for system location engine changes.
NoteThe method is temporarily annotated as
optionalto simplify the adoption. It might become a
requiredmethod in the future.
func onAuthorizationStatusChanged(isGranted: Bool)
A state of authorization. The location engine is considered authorized if the CLLocationManager’s authorization status is CLAuthorizationStatus.authorizedAlways or CLAuthorizationStatus.authorizedWhenInUse.