MMKSpeedPolicyProvider
@interface MMKSpeedPolicyProvider : NSObject |
Undocumented
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.