LocationActions

public protocol LocationActions : AnyObject

Type to control location features.

Important

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

    Declaration

    Swift

    func activateLocationEngine()
  • Deactivates location engine.

    Declaration

    Swift

    func deactivateLocationEngine()
  • The current location engine. After the instance of TomTomMap is initialized the location engine is equal to DefaultCLLocationEngine.

    Declaration

    Swift

    var locationEngine: LocationEngine { get }
  • Sets custom location engine.

    Declaration

    Swift

    func setCustomLocationEngine(_ engine: LocationEngine)

    Parameters

    engine

    Object of type LocationEngine.

  • Overrides DefaultLocationValidator location validator.

    Declaration

    Swift

    func setLocationValidator(_ validator: LocationValidator)

    Parameters

    validator

    Object of type LocationValidator.

  • Types of the location marker visualization.

    Declaration

    Swift

    var locationIndicatorType: LocationIndicatorType { get set }
  • Types of accuracy indicator rendered around the current location marker.

    Declaration

    Swift

    var accuracyIndicatorType: AccuracyIndicatorType { get set }