GoogleMap.OnInfoWindowLongClickListener
公用方法
公用抽象
void
onInfoWindowLongClick
(Marker 標記)
當使用者在標記的資訊視窗上長按手勢時呼叫。
系統會在 Android UI 執行緒上呼叫此方法。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-16 (世界標準時間)。
[null,null,["上次更新時間:2025-06-16 (世界標準時間)。"],[[["`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"]]