GoogleMap.OnInfoWindowLongClickListener

  • GoogleMap.OnInfoWindowLongClickListener is an interface used to handle long clicks on marker info windows.

  • It includes a single method, onInfoWindowLongClick, which is triggered when a user long-presses a marker's info window.

  • The onInfoWindowLongClick method provides the Marker object associated with the info window that was long-pressed, enabling developers to take specific actions based on the marker.

public static interface GoogleMap.OnInfoWindowLongClickListener

Callback interface for when the user long presses on a marker's info window.

Public Method Summary

abstract void
onInfoWindowLongClick(Marker marker)
Called when the user makes a long-press gesture on the marker's info window.

Public Methods

public abstract void onInfoWindowLongClick (Marker marker)

Called when the user makes a long-press gesture on the marker's info window.

This is called on the Android UI thread.

Parameters
marker The marker to which the info window is anchored.