SafetyCameraWarningListener class abstract
This abstract class 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.
Constructors
- SafetyCameraWarningListener(void onSafetyCameraWarningUpdatedLambda(SafetyCameraWarning))
-
This abstract class
should be implemented in order to receive notifications on safety cameras.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onSafetyCameraWarningUpdated(
SafetyCameraWarning safetyCameraWarning) → void -
Called whenever a new
SafetyCameraWarningis available. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited