GoogleMap.OnPoiClickListener

  • GoogleMap.OnPoiClickListener is an interface used to handle clicks on Points of Interest (POIs) on a Google Map.

  • It includes a single method, onPoiClick, which is triggered when a POI is clicked or tapped, providing details about the selected POI.

  • This method is executed on the Android UI thread for immediate response to user interaction.

public static interface GoogleMap.OnPoiClickListener

A listener for POI taps.

Public Method Summary

abstract void
onPoiClick(PointOfInterest poi)
Called when a POI is clicked or tapped.

Public Methods

public abstract void onPoiClick (PointOfInterest poi)

Called when a POI is clicked or tapped.

This is called on the Android UI thread.

Parameters
poi The point of interest that was clicked or tapped.