public static interface

AmazonMap.OnMyLocationButtonClickListener

com.amazon.geo.mapsv2.AmazonMap.OnMyLocationButtonClickListener

Class Overview

Interface for receiving callbacks when the user clicks the "Locate Me" button.

Note: to enable the "Locate Me" button, set both setMyLocationEnabled(boolean) and setMyLocationButtonEnabled(boolean) to true.

Summary

Public Methods
abstract boolean onMyLocationButtonClick()
Called when the "Locate Me" button is clicked.

Public Methods

public abstract boolean onMyLocationButtonClick ()

Called when the "Locate Me" button is clicked. By default, clicking this button animates the map camera to the user's location and zooms in.

To consume the click event and block the the default behavior, return true. To allow the default behavior, return false.

Returns
  • true to consume the event and block the default behavior, or false to allow the default behavior.