PlaceSelectionListener

public interface PlaceSelectionListener

A listener for place selection events.

Public Method Summary

abstract void
onError(Status status)
Called when an error occurs while fetching details for the selected place autocomplete prediction.
abstract void
onPlaceSelected(Place place)
Called when a place is selected by the user.

Public Methods

public abstract void onError (Status status)

Called when an error occurs while fetching details for the selected place autocomplete prediction.

The list of possible status codes is available at PlacesStatusCodes. Errors returned are developer errors such as providing an invalid API key. Other errors such as network or timeout errors are handled by the widget.

Parameters
status

public abstract void onPlaceSelected (Place place)

Called when a place is selected by the user.

Parameters
place

发送以下问题的反馈:

此网页
Places SDK for Android