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.distance_to_camera_in_meters is 120 meters and the next SafetyCameraWarning.distance_to_camera_in_meters is then 40 meters, since that is the distance between the first and second warnings.

When SafetyCameraWarningListener is enabled, a new set of text notifications (e.g. “Speed camera ahead”) will be trigger 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.