Builder for a Place Autocomplete launch intent.
After setting the optional parameters, call
build(Activity) and pass the intent to
startActivityForResult(android.content.Intent, int).
|
PlaceAutocomplete.IntentBuilder(int mode)
Creates a new builder that creates an intent to launch the autocomplete
activity.
|
| Intent | |
| PlaceAutocomplete.IntentBuilder |
setBoundsBias(LatLngBounds bounds)
Biases the autocomplete results to a particular area.
|
| PlaceAutocomplete.IntentBuilder |
Creates a new builder that creates an intent to launch the autocomplete activity.
| mode | Either
MODE_FULLSCREEN or
MODE_OVERLAY. |
|---|
Checks that Google Play Services is available and retrieves the current Intent as configured by the Builder.
| GooglePlayServicesNotAvailableException | If Google Play Services is not available. |
|---|---|
| GooglePlayServicesRepairableException | If Google Play Services is not available, and the cause of the error can be resolved by the user. |
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.
| bounds | A LatLngBounds object that defines a geographical area using two sets of latitude/longitude coordinates marking the top left and bottom right corners. |
|---|
Sets a filter on autocomplete predictions.
| filter | A filter to use for restricting the returned predictions. If null, a filter with no constraints will be used. |
|---|