GoogleMap.OnInfoWindowLongClickListener
Callback interface for when the user long presses on a 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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-14 UTC.
[null,null,["Last updated 2025-04-14 UTC."],[[["`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."]]],["The `GoogleMap.OnInfoWindowLongClickListener` interface provides a callback for long-press events on a marker's info window. The core functionality is within the `onInfoWindowLongClick(Marker marker)` method. This method is triggered when a user performs a long-press on the info window and executes on the Android UI thread. The `marker` parameter identifies the specific marker linked to the long-pressed info window.\n"]]