com.amazon.geo.mapsv2.AmazonMap.OnMyLocationButtonClickListener |
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
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when the "Locate Me" button is clicked.
|
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
.
true
to consume the event and block the default
behavior, or false
to allow the default behavior.