SpeedingListener

  • SpeedingListener is a callback interface used to provide updates on a driver's speeding behavior relative to the speed limit.

  • It includes the onSpeedingUpdated method, 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, with SpeedAlertSeverity.NONE indicating no speeding.

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.

Parameters
percentageAboveLimit
speedAlertSeverity