AI-generated Key Takeaways
-
SpeedingListeneris a callback interface used to provide updates on a driver's speeding behavior relative to the speed limit. -
It includes the
onSpeedingUpdatedmethod, which delivers the percentage by which the driver exceeds the speed limit and the severity of the speeding (minor, major, or none). -
When the speed limit or driver's speed is unknown, the percentage is reported as -1 and the severity as
SpeedAlertSeverity.NONE. -
The severity of the speeding alert is determined based on thresholds defined in
SpeedAlertOptions, withSpeedAlertSeverity.NONEindicating no speeding.
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 |