renderManeuvers

fun renderManeuvers(maneuvers: Expected<ManeuverError, List<Maneuver>>)

Invoke the method to render the maneuvers.

The first maneuver on the list will be rendered as the current maneuver while the rest of the maneuvers will be rendered as upcoming maneuvers.

You can control the number of maneuvers that will be rendered by manipulating the provided list, for example, you can render the current maneuver and a list of up to 5 upcoming maneuvers like this:

maneuverView.renderManeuvers(
maneuvers.mapValue {
it.take(6)
}
)

If there were any shields provided via renderManeuverWith, those shields will be attached to corresponding Maneuvers during rendering.

This method ignores empty lists of maneuvers and will not clean up the view if an empty list is provided.

Parameters

maneuvers

maneuvers to render

See also