addOnLocationClickListener

Adds a listener that gets invoked when the user clicks the displayed location.

If there are registered location click listeners and the location is clicked, only OnLocationClickListener.onLocationComponentClick is going to be delivered, com.mapbox.mapboxsdk.maps.MapboxMap.OnMapClickListener.onMapClick is going to be consumed and not pushed to the listeners registered after the component's activation.

Parameters

listener

The location click listener that is invoked when the location is clicked

fun addOnLocationClickListener(listener: OnLocationClickListener)