MMKSpeedPolicyProvider

@interface MMKSpeedPolicyProvider : NSObject

Undocumented

Summary

Instance methods

- (void)addListenerWithSpeedLimitsListener:
    (nonnull id<MMKSpeedPolicyListener>)speedLimitsListener;

The class does not retain the object in the 'speedLimitsListener' parameter

- (void)removeListenerWithSpeedLimitsListener:
    (nonnull id<MMKSpeedPolicyListener>)speedLimitsListener;

The class does not retain the object in the 'speedLimitsListener' parameter

- (void)updateSpeedLimitsPolicyWithPosition:(nonnull MMKPoint *)position;
Call this method, then wait for MMKSpeedPolicyListener::onSpeedPolicyChanged to read speed policy due to asynchronous updates

Properties

@property (nonatomic, readonly, nonnull) MMKSpeedLimitsPolicy *speedLimitsPolicy;
Returns the speed policy corresponding to the last position that was set

Instance methods

addListenerWithSpeedLimitsListener:

- (void)addListenerWithSpeedLimitsListener:
    (nonnull id<MMKSpeedPolicyListener>)speedLimitsListener;

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:
    (nonnull id<MMKSpeedPolicyListener>)speedLimitsListener;

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.