GoogleMap.OnPoiClickListener

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

  • The onPoiClick method within this interface is triggered when a POI is clicked or tapped, providing details about the specific POI through a PointOfInterest object.

  • This interaction occurs on the Android UI thread, ensuring it's handled within the application's main execution flow.

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.