MapKit Mobile SDK

MMKSpeedPolicyProvider

class MMKSpeedPolicyProvider : NSObject

Undocumented

Summary

Instance methods

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

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

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

Properties

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

Instance methods

addListener(withSpeedLimitsListener:)

func addListener(withSpeedLimitsListener speedLimitsListener: MMKSpeedPolicyListener)

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: MMKSpeedPolicyListener)

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: MMKPoint)

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

var speedLimitsPolicy: MMKSpeedLimitsPolicy { 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.