PlaceSelectionListener

public interface PlaceSelectionListener

Known direct subclasses
AutocompleteActivity

Implements a fullscreen activity that returns predictions in response to user search queries.


A listener for place selection events.

Summary

Public methods

abstract void
onError(Status status)

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

abstract void

Called when a place is selected by the user.

Public methods

onError

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.

onPlaceSelected

abstract void onPlaceSelected(Place place)

Called when a place is selected by the user.