public interface
SpeedingListener
Callback to notify you the percentage above the speed limit the driver is currently driving at,
and the SpeedAlertSeverity.
Public Method Summary
| abstract void |
onSpeedingUpdated(float percentageAboveLimit, SpeedAlertSeverity speedAlertSeverity)
Notifies you that the driver is speeding above the speed limit by the specified percentage, and
the
SpeedAlertSeverity being SpeedAlertSeverity.MINOR or SpeedAlertSeverity.MAJOR if speeding, or SpeedAlertSeverity.NONE if not speeding. |
Public Methods
public abstract void onSpeedingUpdated (float percentageAboveLimit, SpeedAlertSeverity speedAlertSeverity)
Notifies you that the driver is speeding above the speed limit by the specified percentage, and
the SpeedAlertSeverity being SpeedAlertSeverity.MINOR or SpeedAlertSeverity.MAJOR if speeding, or SpeedAlertSeverity.NONE if not speeding.
- When the speed limit is unknown or the speed is unknown, NavSDK reports the percentage as
-1 and
SpeedAlertSeverityasSpeedAlertSeverity.NONE. - When the driver is not speeding according to the thresholds configured in
SpeedAlertOptions, NavSDK reports the percentage as 0, and theSpeedAlertSeverityasSpeedAlertSeverity.NONE. - When the driver is speeding according to the thresholds configured in
SpeedAlertOptions, NavSDK reports the percentage over the speed limit, and theSpeedAlertSeverityasSpeedAlertSeverity.MINORorSpeedAlertSeverity.MAJORaccording to the configured thresholds.
Parameters
| percentageAboveLimit | |
|---|---|
| speedAlertSeverity |