render Maneuver With
fun renderManeuverWith(shields: List<Expected<RouteShieldError, RouteShieldResult>>)
Content copied to clipboard
Invoke the method to update rendered maneuvers with road shields.
The provided shields are list of either RouteShieldError or RouteShieldResult. If a maneuver has already been rendered via renderManeuvers, the respective shields' text will be changed to the shield icon.
Invoking this method also caches all of the available shields. Whenever renderManeuvers is invoked, the cached shields are reused for rendering.
Parameters
shields
the map of maneuver IDs to available list of shields