MPDirectionsRenderer

open fun MPDirectionsRenderer(    @NonNull context: Context,     @NonNull map: GoogleMap,     @Nullable mMapControl: MapControl,     @Nullable legSelectedListener: OnLegSelectedListener)

Parameters

context

The context

map

The Google Map object

mMapControl

The MapControl instance tied to the above Google Map object. Can be null.

legSelectedListener

An optional listener for clicks on the route markers (shown as icon-label)