MMKSpeedPolicyProvider
Warning
This feature is available in the NaviKit SDK version.
|
@interface MMKSpeedPolicyProvider : NSObject |
Summary
Instance methods
|
-Â (void)addListenerWithSpeedLimitsListener: |
|
-Â (void)removeListenerWithSpeedLimitsListener: |
|
- (void)updateSpeedLimitsPolicyWithPosition:(nonnull MMKPoint *)position; |
Properties
|
@property (nonatomic, readonly, nonnull) MMKSpeedLimitsPolicy *speedLimitsPolicy; |
Instance methods
addListenerWithSpeedLimitsListener:
|
-Â (void)addListenerWithSpeedLimitsListener: |
The class does not retain the object in the 'speedLimitsListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
removeListenerWithSpeedLimitsListener:
|
-Â (void)removeListenerWithSpeedLimitsListener: |
The class does not retain the object in the 'speedLimitsListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
updateSpeedLimitsPolicyWithPosition:
|
- (void)updateSpeedLimitsPolicyWithPosition:(nonnull MMKPoint *)position; |
Call this method, then wait for MMKSpeedPolicyListener::onSpeedPolicyChanged to read speed policy due to asynchronous updates. MMKSpeedPolicyListener::onSpeedPolicyChanged will be called only if speedLimitsPolicy changed
Properties
speedLimitsPolicy
|
@property (nonatomic, readonly, nonnull) MMKSpeedLimitsPolicy *speedLimitsPolicy; |
Returns the speed policy corresponding to the last position that was set. If no position has been previously set, the function returns the standard speed policy.