GoogleMap.OnInfoWindowCloseListener
公共方法
public abstract void
onInfoWindowClose
(标记标记)
在标记的信息窗口关闭时调用。
此方法在 Android 界面线程上调用。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-08。
[null,null,["最后更新时间 (UTC):2025-07-08。"],[[["`GoogleMap.OnInfoWindowCloseListener` is a callback interface used for handling events when a marker's info window is closed on a Google Map."],["This interface has one method, `onInfoWindowClose(Marker marker)`, which is triggered when an info window is closed, providing the associated marker as a parameter."],["The `onInfoWindowClose` method is executed on the Android UI thread."]]],["The `GoogleMap.OnInfoWindowCloseListener` interface handles close events for a marker's info window. It contains one method, `onInfoWindowClose(Marker marker)`, which is called when an info window is closed. This method is executed on the Android UI thread and receives the `Marker` object associated with the closed info window as a parameter, allowing for custom actions based on the closure.\n"]]