onRoadShields

abstract fun onRoadShields(shields: List<Expected<RouteShieldError, RouteShieldResult>>)

The callback is invoked when road shields are ready.

This returns a list of possible RouteShieldResult or RouteShieldError that can be used to render the shield on a UI.

To convert the returned SVG ByteArray to a Bitmap use RouteShield.toBitmap.

Parameters

shields

list of Expected wither containing RouteShieldError or RouteShieldResult