GoogleMap.OnMapLongClickListener
使用者長按地圖時的回呼介面。
系統會在 Android UI 執行緒上叫用事件監聽器。
公用方法
公用抽象
void
onMapLongClick
(LatLng Point)
當使用者在地圖上長按手勢時呼叫,但前提是地圖的任何疊加層都沒有處理該手勢。這個方法的實作一律是在 Android UI 執行緒上叫用。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-16 (世界標準時間)。
[null,null,["上次更新時間:2025-06-16 (世界標準時間)。"],[[["`GoogleMap.OnMapLongClickListener` is an interface to handle long-press gestures on a Google Map."],["The `onMapLongClick` method is called when a user long-presses on the map, providing the geographical coordinates of the pressed point."],["This listener is triggered only if no other map overlays have consumed the long-press event."],["`onMapLongClick` executions occur on the main Android UI thread, ensuring smooth interaction with the application's interface."]]],[]]