BorderCrossingWarningListener class abstract
This abstract class should be implemented in order to receive border crossing warnings for country and state borders.
Note: The border crossing warner is a point warner, which means that for a border crossing there will always be 2 warnings emitted, with the BorderCrossingWarning.distanceType set to DistanceType.ahead and DistanceType.passed which is given when the location of the border crossing is reached. A BorderCrossingWarning will not be given until the previous warning of that type has been passed. For example, a route with BorderCrossingWarning 120 meters and BorderCrossingWarning 160 meters ahead, the first BorderCrossingWarning.distanceToBorderCrossingInMeters is 120 meters and the next BorderCrossingWarning.distanceToBorderCrossingInMeters is then 40 meters, since that is the distance between the first and second warnings.
Constructors
- BorderCrossingWarningListener(void onBorderCrossingWarningUpdatedLambda(BorderCrossingWarning))
-
This abstract class
should be implemented in order to receive border crossing warnings for country and state borders.
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
-
onBorderCrossingWarningUpdated(
BorderCrossingWarning borderCrossingWarning) → void - Called whenever a new border crossing warning is available.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited