GoogleMap.OnMapLongClickListener
用户长按地图时使用的回调接口。
系统将在 Android 界面线程上调用监听器。
公共方法
public abstract void
onMapLongClick
(LatLng 点)
仅在用户在地图上做出长按手势时调用,但前提是地图没有任何叠加层处理该手势。此方法的实现始终在 Android 界面线程上调用。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-16。
[null,null,["最后更新时间 (UTC):2025-07-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."]]],[]]