addOnLocationLongClickListener

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

If there are registered location long click listeners and the location is long clicked, only OnLocationLongClickListener.onLocationComponentLongClick is going to be delivered, com.mapbox.mapboxsdk.maps.MapboxMap.OnMapLongClickListener.onMapLongClick 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 addOnLocationLongClickListener(listener: OnLocationLongClickListener)