TruckRestrictionsWarningListener (API Reference)
Package com.here.sdk.navigation
Interface TruckRestrictionsWarningListener
public interface TruckRestrictionsWarningListener
This interface should be implemented in order to receive truck restriction warnings.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonTruckRestrictionsWarningUpdated(List<TruckRestrictionWarning> restrictions) Called whenever the distance type (TruckRestrictionWarning.distanceType) of a truck restriction changes.
-
Method Details
-
onTruckRestrictionsWarningUpdated
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 withDistanceType.AHEADorDistanceType.REACHEDbased on the updates provided by this method.- Parameters:
restrictions-A list containing truck restriction warnings that have their distance type (
TruckRestrictionWarning.distanceType) updated.
-