on Road Shields
abstract fun onRoadShields(maneuvers: List<Maneuver>, shields: Map<String, RoadShield?>, errors: Map<String, RoadShieldError>)
Content copied to clipboard
The callback is invoked when road shields are ready.
The return maps of String to RoadShield or RoadShieldError can be used when displaying PrimaryManeuver, SecondaryManeuver, and SubManeuver.
Parameters
maneuvers
list of Maneuvers for which the shields were requested.
shields
map of a key to RoadShield where key is an ID of a maneuver's banner, one of PrimaryManeuver.id, SecondaryManeuver.id or SubManeuver.id. You can use those IDs to associate the maneuver's banner with the icon.
errors
map of a key to RoadShieldError where key is an ID of a maneuver's banner, one of PrimaryManeuver.id, SecondaryManeuver.id or SubManeuver.id. You can use those IDs to associate the maneuver's banner with the error.