CitymapperNavigationTracking
public class CitymapperNavigationTracking : RouteProgressSource
-
Declaration
Swift
public static let shared: CitymapperNavigationTracking
-
Declaration
Swift
public var currentRouteProgress: RouteProgress? { get }
-
Declaration
Swift
public var activeRouteProgress: RouteProgress? { get }
-
Declaration
Swift
public var routeProgressDelegate: RouteProgressDelegate? { get set }
-
Declaration
Swift
public var guidanceEventDelegate: GuidanceEventDelegate? { get set }
-
Declaration
Swift
public func createNavigableRoute(seedRoute: Route, trackingConfiguration: TrackingConfiguration) -> NavigableRoute
-
Declaration
Swift
public func startNavigation(route: Route, trackingConfiguration: TrackingConfiguration, resultDelegate: @escaping (StartNavigationResult) -> Void)
-
Declaration
Swift
public func endNavigation()
-
Declaration
Swift
public func setVehicleLockState(state: VehicleLockState)
-
Declaration
Swift
public func currentNavigationLogFileUrl() -> URL?
-
Declaration
Swift
public func lastLocation() -> Location?
-
Declaration
Swift
public func addRouteProgressObserver(observer: RouteProgressObserver)
-
Declaration
Swift
public func removeRouteProgressObserver(observer: RouteProgressObserver)
-
Add an observer which will be called whenever a
GuidanceEvent
is triggered.This class only holds a weak reference to the observer. To remove the observer before it is deallocated, pass the observer to
removeGuidanceEventObserver
All callbacks are guaranteed to happen on the main thread.Declaration
Swift
public func addGuidanceEventObserver(observer: GuidanceEventObserver)
-
Remove a GuidanceEventObserver before it is deallocated
Declaration
Swift
public func removeGuidanceEventObserver(observer: GuidanceEventObserver)
-
Declaration
Swift
public static func canStartNavigation(for route: Route, userLocation: CLLocationCoordinate2D) -> StartNavigationResult