SafetyCameraWarningDelegate

public protocol SafetyCameraWarningDelegate : AnyObject

This protocol should be implemented in order to receive notifications on safety cameras. A SafetyCameraWarning will not be given until the previous warning of that type has been passed. For example, a route with SafetyCameraWarning 120 meters and SafetyCameraWarning 160 meters ahead, the first SafetyCameraWarning.distanceToCameraInMeters is 120 meters and the next SafetyCameraWarning.distanceToCameraInMeters is then 40 meters, since that is the distance between the first and second warnings.

When SafetyCameraWarningDelegate is enabled, a new set of text notifications (e.g. “Speed camera ahead”) will be trigger under EventTextDelegate if any has been also enabled. The updates for the same safety camera appear in order of the initial DistanceType.ahead event. That is a first in first out approach is used when multiple safety cameras are reached or passed on the same location.