Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# PlaceAutocomplete.IntentBuilder

extends Object

java.lang.Object
↳ | com.google.android.gms.location.places.ui.PlaceAutocomplete.IntentBuilder

## Class Overview

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)`.

## Summary

Public Constructors
| PlaceAutocomplete.IntentBuilder(int mode) Creates a new builder that creates an intent to launch the autocomplete activity.

Public Methods
Intent | build(Activity activity) Checks that Google Play Services is available and retrieves the current Intent as configured by the Builder.
PlaceAutocomplete.IntentBuilder | setBoundsBias(LatLngBounds bounds) Biases the autocomplete results to a particular area.
PlaceAutocomplete.IntentBuilder | setFilter(AutocompleteFilter filter) Sets a filter on autocomplete predictions.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public PlaceAutocomplete.IntentBuilder (int mode)

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

##### Parameters

mode | Either `MODE_FULLSCREEN` or `MODE_OVERLAY`.

## Public Methods

#### public Intent build (Activity activity)

Checks that Google Play Services is available and retrieves the current Intent as configured by the Builder.

##### Returns

- The current Intent configured by this builder.

##### Throws

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.

#### public PlaceAutocomplete.IntentBuilder setBoundsBias (LatLngBounds bounds)

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

bounds | A LatLngBounds object that defines a geographical area using two sets of latitude/longitude coordinates marking the top left and bottom right corners.

#### public PlaceAutocomplete.IntentBuilder setFilter (AutocompleteFilter filter)

Sets a filter on autocomplete predictions.

##### Parameters

filter | A filter to use for restricting the returned predictions. If null, a filter with no constraints will be used.