Autocomplete.IntentBuilder

public static class Autocomplete.IntentBuilder extends BaseIntentBuilder

Builder for an intent to launch the autocomplete activity.

Public Constructor Summary

Autocomplete.IntentBuilder(AutocompleteActivityMode mode, List<Place.Field> placeFields)
Creates a new builder for an intent to launch the autocomplete activity.

Public Method Summary

Intent
build(Context context)
Autocomplete.IntentBuilder
setCountry(String country)
Restricts the autocomplete results to the given country, specified as a ISO 3166-1 Alpha-2 country code.
Autocomplete.IntentBuilder
setInitialQuery(String initialQuery)
Sets the initial query in the search input.
Autocomplete.IntentBuilder
setLocationBias(LocationBias locationBias)
Biases the autocomplete results to a particular area.
Autocomplete.IntentBuilder
setLocationRestriction(LocationRestriction locationRestriction)
Restricts the autocomplete results to a particular area.
Autocomplete.IntentBuilder
setTypeFilter(TypeFilter typeFilter)
Filters the autocomplete results to the given place type.

Inherited Method Summary

Public Constructors

public Autocomplete.IntentBuilder (AutocompleteActivityMode mode, List<Place.Field> placeFields)

Creates a new builder for an intent to launch the autocomplete activity.

Parameters
mode the display mode of the autocomplete activity.
placeFields the fields of the place to be requested. See Place.Field for the specifiable fields. Read more about Place Data Fields.

Public Methods

public Intent build (Context context)

Parameters
context

public Autocomplete.IntentBuilder setCountry (String country)

Restricts the autocomplete results to the given country, specified as a ISO 3166-1 Alpha-2 country code.

Parameters
country

public Autocomplete.IntentBuilder setInitialQuery (String initialQuery)

Sets the initial query in the search input.

Parameters
initialQuery

public Autocomplete.IntentBuilder setLocationBias (LocationBias locationBias)

Biases the autocomplete results to a particular area.

If the bounds are unset or explicitly set to null, the autocomplete results will be biased to the device's approximate location.

Parameters
locationBias

public Autocomplete.IntentBuilder setLocationRestriction (LocationRestriction locationRestriction)

Restricts the autocomplete results to a particular area.

Parameters
locationRestriction

public Autocomplete.IntentBuilder setTypeFilter (TypeFilter typeFilter)

Filters the autocomplete results to the given place type.

Parameters
typeFilter

フィードバックを送信...