GuidanceSpeedMonitorDelegate

public protocol GuidanceSpeedMonitorDelegate : AnyObject

The protocol used to notify the delegate about changes on the speed and speed limit.

  • Notifies the delegate about changes on the speed and speed limit.

    Declaration

    Swift

    func guidanceSpeedMonitor(_ monitor: GuidanceSpeedMonitor, didUpdateCurrentSpeed currentSpeed: Measurement<UnitSpeed>?, isSpeeding: Bool, speedLimit: Measurement<UnitSpeed>?)

    Parameters

    monitor

    The monitor announcing the changes.

    currentSpeed

    The current speed. It can be nil if no information is available or position is missing.

    isSpeeding

    A boolean indicating if the current speed is above the road speed limit.

    speedLimit

    The lane speed limit. It can be nil if no information is available.