PredictionSelectionListener

public interface PredictionSelectionListener

Known direct subclasses
PlaceAutocompleteActivity

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


A listener for prediction selection events.

Summary

Public methods

abstract void
onError(@NonNull Status errorStatus)

Called when an error occurs.

abstract void

Called when a prediction is selected by the user.

Public methods

onError

abstract void onError(@NonNull Status errorStatus)

Called when an error occurs.

The list of possible status codes can be found here

onPredictionSelected

abstract void onPredictionSelected(
    @NonNull AutocompletePrediction prediction,
    @NonNull AutocompleteSessionToken sessionToken
)

Called when a prediction is selected by the user.