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 asoptionalto simplify the adoption. It might become arequiredmethod in the future.Declaration
Swift
func onAuthorizationStatusChanged(isGranted: Bool)Parameters
isGrantedA state of authorization. The location engine is considered authorized if the CLLocationManager’s authorization status is CLAuthorizationStatus.authorizedAlways or CLAuthorizationStatus.authorizedWhenInUse.
TomTom SDK for iOS (0.40.0)
LocationProviderObservable