Builder for an AutocompleteFilter
.
After setting the optional parameters, call
build()
and pass the result to
getAutocompletePredictions(GoogleApiClient, String, LatLngBounds,
AutocompleteFilter)
.
Public Constructor Summary
AutocompleteFilter.Builder()
Creates a new builder for an
AutocompleteFilter .
|
Public Method Summary
AutocompleteFilter |
build()
Returns an
AutocompleteFilter that can be passed to
getAutocompletePredictions(GoogleApiClient, String, LatLngBounds,
AutocompleteFilter) .
|
AutocompleteFilter.Builder | |
AutocompleteFilter.Builder |
setTypeFilter(int typeFilter)
Allows you to restrict the result set of a Place Autocomplete request.
|
Inherited Method Summary
Public Constructors
public AutocompleteFilter.Builder ()
Creates a new builder for an AutocompleteFilter
.
Public Methods
public AutocompleteFilter build ()
Returns an AutocompleteFilter
that can be passed to
getAutocompletePredictions(GoogleApiClient, String, LatLngBounds,
AutocompleteFilter)
.
public AutocompleteFilter.Builder setCountry (String country)
The country to restrict results to. This should be a ISO 3166-1 Alpha-2 country code (case insensitive). If this is not set, no country filtering will take place.
public AutocompleteFilter.Builder setTypeFilter (int typeFilter)
Allows you to restrict the result set of a Place Autocomplete request.
Valid values are: