YMKSpeedPolicyProvider

class YMKSpeedPolicyProvider : NSObject

Undocumented

Summary

Instance methods

func addListener(withSpeedLimitsListener speedLimitsListener: YMKSpeedPolicyListener)
The class does not retain the object in the 'speedLimitsListener' parameter

func removeListener(withSpeedLimitsListener speedLimitsListener: YMKSpeedPolicyListener)
The class does not retain the object in the 'speedLimitsListener' parameter

func updateSpeedLimitsPolicy(withPosition position: YMKPoint)
Call this method, then wait for YMKSpeedPolicyListener::onSpeedPolicyChanged to read speed policy due to asynchronous updates

Properties

var speedLimitsPolicyYMKSpeedLimitsPolicy { get }
Returns the speed policy corresponding to the last position that was set

Instance methods

addListener(withSpeedLimitsListener:)

func addListener(withSpeedLimitsListener speedLimitsListener: YMKSpeedPolicyListener)

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.


removeListener(withSpeedLimitsListener:)

func removeListener(withSpeedLimitsListener speedLimitsListener: YMKSpeedPolicyListener)

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.


updateSpeedLimitsPolicy(withPosition:)

func updateSpeedLimitsPolicy(withPosition position: YMKPoint)

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

var speedLimitsPolicy: YMKSpeedLimitsPolicy { get }

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.


Предыдущая