YMKSpeedPolicyProvider
Важно
This feature is available in the NaviKit SDK version.
|
@interface YMKSpeedPolicyProvider : NSObject |
Summary
Instance methods
|
- (void)addListenerWithSpeedLimitsListener: |
|
- (void)removeListenerWithSpeedLimitsListener: |
|
- (void)updateSpeedLimitsPolicyWithPosition:(nonnull YMKPoint *)position; |
Properties
|
@property (nonatomic, readonly, nonnull) YMKSpeedLimitsPolicy *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 YMKPoint *)position; |
Call this method, then wait for YMKSpeedPolicyListener::onSpeedPolicyChanged to read speed policy due to asynchronous updates. YMKSpeedPolicyListener::onSpeedPolicyChanged will be called only if speedLimitsPolicy changed
Properties
speedLimitsPolicy
|
@property (nonatomic, readonly, nonnull) YMKSpeedLimitsPolicy *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.