GoogleMap.OnInfoWindowLongClickListener
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-15 UTC."],[],["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"]]