RealisticViewWarningDelegate
public protocol RealisticViewWarningDelegate : AnyObject
This protocol should be implemented in order to receive realistic view warnings.
A RealisticViewWarning will not be given until the previous warning of that type has been passed.
For example, a route with RealisticViewWarning 120 meters and RealisticViewWarning 160 meters ahead,
the first RealisticViewWarning.distanceToRealisticViewInMeters is 120 meters
and the next RealisticViewWarning.distanceToRealisticViewInMeters is then 40 meters,
since that is the distance between the first and second warnings.
-
Called whenever a new realistic view warning is available.
Declaration
Swift
func onRealisticViewWarningUpdated(_ realisticViewWarning: RealisticViewWarning)Parameters
realisticViewWarningThe object that contains details on the realistic view warning.