onTruckRestrictionsWarningUpdated abstract method

void onTruckRestrictionsWarningUpdated(
  1. List<TruckRestrictionWarning> restrictions
)

Called whenever the distance type (TruckRestrictionWarning.distanceType) of a truck restriction changes.

If needed, it is up to the application to maintain a list of active warnings like the ones with DistanceType.ahead or DistanceType.reached based on the updates provided by this method.

Implementation

void onTruckRestrictionsWarningUpdated(List<TruckRestrictionWarning> restrictions);