Protocols

The following protocols are available globally.

LocationEngineObserver

  • LocationEngineObserver

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol LocationEngineObserver : Observer

LocationEngine

  • LocationEngine protocol used for providing a CLLocation for TomTomMap.

    For TomTomMapView, TomTom provides an implementation based on CLLocationManager. The default implementation can be replaced using:

     mapView.tomTomMap.setCustomLocationEngine(engine:)
    

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol LocationEngine : AnyObject
  • LocationUpdateValidationPolicy protocol defines the policy for validating incoming location updates

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol LocationUpdateValidationPolicy

LocationValidator

  • LocationValidator defines interface for checking if the location valid or not. Valid location, having GPSStatus .fix, will be presented on map with default color, location with GPSStatus .noFix will have grey badge.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public protocol LocationValidator : AnyObject