GoogleMap.OnMyLocationClickListener

  • The GoogleMap.OnMyLocationClickListener interface is a callback for when the My Location dot on the map is clicked.

  • The onMyLocationClick method is called when the My Location dot is clicked and provides the current location.

  • The onMyLocationClick method is called on the Android UI thread.

public static interface GoogleMap.OnMyLocationClickListener

Callback interface for when the My Location dot (which signifies the user's location) is clicked.

Public Method Summary

abstract void
onMyLocationClick(Location location)
Called when the My Location dot is clicked.

Public Methods

public abstract void onMyLocationClick (Location location)

Called when the My Location dot is clicked.

This is called on the Android UI thread.

Parameters
location The current location of the My Location dot.