YMKGuidance
Важно
This feature is available in the NaviKit SDK version.
|
@interface YMKGuidance : NSObject |
Summary
Instance methods
|
- (void)switchToRouteWithRoute:(nonnull YMKDrivingRoute *)route; |
|
- (void)addListenerWithGuidanceListener: |
|
- (void)removeListenerWithGuidanceListener: |
Properties
|
@property (nonatomic, assign, unsafe_unretained, readwrite, |
|
@property (nonatomic, assign, unsafe_unretained, readwrite, |
|
@property (nonatomic, readonly, nonnull) YMKNavigationWindshield *windshield; |
|
@property (nonatomic, readonly, nonnull) YMKAnnotator *annotator; |
|
@property (nonatomic, readonly, nullable) YMKDrivingRoute *currentRoute; |
|
@property (nonatomic, readonly, nonnull) |
|
@property (nonatomic, readonly, nullable) |
|
@property (nonatomic, readonly, nullable) YMKLocation *location; |
|
@property (nonatomic, readonly, nullable) NSNumber *locationClass; |
|
@property (nonatomic, readonly, nullable) NSString *roadName; |
|
@property (nonatomic, readonly) YMKRouteStatus routeStatus; |
|
@property (nonatomic, readonly, nonnull) YMKSpeedLimitsPolicy *speedLimitsPolicy; |
|
@property (nonatomic, assign, unsafe_unretained, readwrite) |
|
@property (nonatomic, readonly, nullable) YMKLocalizedValue *speedLimit; |
|
@property (nonatomic, readonly) YMKSpeedLimitStatus speedLimitStatus; |
|
@property (nonatomic, readonly, getter=isValid) BOOL valid; |
Instance methods
switchToRouteWithRoute:
|
- (void)switchToRouteWithRoute:(nonnull YMKDrivingRoute *)route; |
Start guidance with given alternative. It only accepts routes obtained from this Guidance.routes field.
addListenerWithGuidanceListener:
|
- (void)addListenerWithGuidanceListener: |
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.
removeListenerWithGuidanceListener:
|
- (void)removeListenerWithGuidanceListener: |
Properties
enableAlternatives
|
@property (nonatomic, assign, unsafe_unretained, readwrite, |
Enables/Disables alternatives suggestion while guiding. Enabled by default.
enableReroutes
|
@property (nonatomic, assign, unsafe_unretained, readwrite, |
Enables/Disables rerouting. Enabled by default.
windshield
|
@property (nonatomic, readonly, nonnull) YMKNavigationWindshield *windshield; |
annotator
|
@property (nonatomic, readonly, nonnull) YMKAnnotator *annotator; |
currentRoute
|
@property (nonatomic, readonly, nullable) YMKDrivingRoute *currentRoute; |
Optional property, can be nil.
alternatives
|
@property (nonatomic, readonly, nonnull) |
Vector with all alternatives ahead. Sorted by distance.
fastestAlternative
|
@property (nonatomic, readonly, nullable) |
Optional property, can be nil.
location
|
@property (nonatomic, readonly, nullable) YMKLocation *location; |
Optional property, can be nil.
locationClass
|
@property (nonatomic, readonly, nullable) NSNumber *locationClass; |
Optional property, can be nil.
roadName
|
@property (nonatomic, readonly, nullable) NSString *roadName; |
Optional property, can be nil.
routeStatus
|
@property (nonatomic, readonly) YMKRouteStatus routeStatus; |
speedLimitsPolicy
|
@property (nonatomic, readonly, nonnull) YMKSpeedLimitsPolicy *speedLimitsPolicy; |
In case region is not yet available, SpeedingPolicy::region is empty and default speeding config is used.
speedLimitTolerance
|
@property (nonatomic, assign, unsafe_unretained, readwrite) |
speedLimit
|
@property (nonatomic, readonly, nullable) YMKLocalizedValue *speedLimit; |
Speed limit of the current road.
Optional property, can be nil.
speedLimitStatus
|
@property (nonatomic, readonly) YMKSpeedLimitStatus speedLimitStatus; |
valid
|
@property (nonatomic, readonly, getter=isValid) BOOL valid; |
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.