MMKGuidance
@interface MMKGuidance : NSObject |
Undocumented
Summary
Instance methods
- (void)switchToRouteWithRoute:(nonnull MMKDrivingRoute *)route; |
- (void)addListenerWithGuidanceListener: |
- (void)removeListenerWithGuidanceListener: |
Properties
@property (nonatomic, assign, unsafe_unretained, readwrite, |
@property (nonatomic, readonly, nonnull) MMKNavigationWindshield *windshield; |
@property (nonatomic, readonly, nonnull) MMKAnnotator *annotator; |
@property (nonatomic, readonly, nullable) MMKDrivingRoute *currentRoute; |
@property (nonatomic, readonly, nonnull) |
@property (nonatomic, readonly, nullable) |
@property (nonatomic, readonly, nullable) MMKLocation *location; |
@property (nonatomic, readonly, nullable) NSNumber *locationClass; |
@property (nonatomic, readonly, nullable) NSString *roadName; |
@property (nonatomic, readonly) MMKRouteStatus routeStatus; |
@property (nonatomic, readonly, nonnull) MMKSpeedLimitsPolicy *speedLimitsPolicy; |
@property (nonatomic, assign, unsafe_unretained, readwrite) |
@property (nonatomic, readonly, nullable) MMKLocalizedValue *speedLimit; |
@property (nonatomic, readonly) MMKSpeedLimitStatus speedLimitStatus; |
@property (nonatomic, readonly, getter=isValid) BOOL valid; |
Instance methods
switchToRouteWithRoute:
- (void)switchToRouteWithRoute:(nonnull MMKDrivingRoute *)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: |
Undocumented
Properties
enableAlternatives
@property (nonatomic, assign, unsafe_unretained, readwrite, |
Enables/Disables alternatives suggestion while guiding. Enabled by default.
windshield
@property (nonatomic, readonly, nonnull) MMKNavigationWindshield *windshield; |
Undocumented
annotator
@property (nonatomic, readonly, nonnull) MMKAnnotator *annotator; |
Undocumented
currentRoute
@property (nonatomic, readonly, nullable) MMKDrivingRoute *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) MMKLocation *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) MMKRouteStatus routeStatus; |
Undocumented
speedLimitsPolicy
@property (nonatomic, readonly, nonnull) MMKSpeedLimitsPolicy *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) |
Undocumented
speedLimit
@property (nonatomic, readonly, nullable) MMKLocalizedValue *speedLimit; |
Speed limit of the current road.
Optional property, can be nil.
speedLimitStatus
@property (nonatomic, readonly) MMKSpeedLimitStatus speedLimitStatus; |
Undocumented
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.