YMKGuidance

class YMKGuidance : NSObject

Undocumented

Summary

Instance methods

func switchToRoute(with route: YMKDrivingRoute)
Start guidance with given alternative

func addListener(with guidanceListener: YMKGuidanceListener)
The class does not retain the object in the 'guidanceListener' parameter

func removeListener(with guidanceListener: YMKGuidanceListener)
Undocumented

Properties

var isEnableAlternatives: Bool { get set }
Enables/Disables alternatives suggestion while guiding

var windshieldYMKNavigationWindshield { get }
Undocumented

var annotatorYMKAnnotator { get }
Undocumented

var currentRouteYMKDrivingRoute? { get }
Optional property, can be nil

var alternatives: [YMKNavigationAlternative] { get }
Vector with all alternatives ahead

var fastestAlternativeYMKNavigationAlternative? { get }
Optional property, can be nil

var locationYMKLocation? { get }
Optional property, can be nil

var locationClass: NSNumber? { get }
Optional property, can be nil

var roadName: String? { get }
Optional property, can be nil

var routeStatusYMKRouteStatus { get }
Undocumented

var speedLimitsPolicyYMKSpeedLimitsPolicy { get }
In case region is not yet available, SpeedingPolicy::region is empty and default speeding config is used

var speedLimitTolerance: Double { get set }
Undocumented

var speedLimitYMKLocalizedValue? { get }
Speed limit of the current road

var speedLimitStatusYMKSpeedLimitStatus { get }
Undocumented

var isValid: Bool { get }
Tells if this object is valid or no

Instance methods

switchToRoute(with:)

func switchToRoute(with route: YMKDrivingRoute)

Start guidance with given alternative. It only accepts routes obtained from this Guidance.routes field.


addListener(with:)

func addListener(with guidanceListener: YMKGuidanceListener)

The class does not retain the object in the 'guidanceListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


removeListener(with:)

func removeListener(with guidanceListener: YMKGuidanceListener)

Undocumented


Properties

isEnableAlternatives

var isEnableAlternatives: Bool { get set }

Enables/Disables alternatives suggestion while guiding. Enabled by default.


windshield

var windshield: YMKNavigationWindshield { get }

Undocumented


annotator

var annotator: YMKAnnotator { get }

Undocumented


currentRoute

var currentRoute: YMKDrivingRoute? { get }

Optional property, can be nil.


alternatives

var alternatives: [YMKNavigationAlternative] { get }

Vector with all alternatives ahead. Sorted by distance.


fastestAlternative

var fastestAlternative: YMKNavigationAlternative? { get }

Optional property, can be nil.


location

var location: YMKLocation? { get }

Optional property, can be nil.


locationClass

var locationClass: NSNumber? { get }

Optional property, can be nil.


roadName

var roadName: String? { get }

Optional property, can be nil.


routeStatus

var routeStatus: YMKRouteStatus { get }

Undocumented


speedLimitsPolicy

var speedLimitsPolicy: YMKSpeedLimitsPolicy { get }

In case region is not yet available, SpeedingPolicy::region is empty and default speeding config is used.


speedLimitTolerance

var speedLimitTolerance: Double { get set }

Undocumented


speedLimit

var speedLimit: YMKLocalizedValue? { get }

Speed limit of the current road.

Optional property, can be nil.


speedLimitStatus

var speedLimitStatus: YMKSpeedLimitStatus { get }

Undocumented


isValid

var isValid: Bool { get }

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.


Предыдущая
Следующая