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

# PlacePicker.IntentBuilder

extends Object

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

## Class Overview

Builder for a Place Picker launch intent.

After setting the optional parameters, call `build(Activity)` and pass the intent to `startActivityForResult(android.content.Intent, int)`.

## Summary

Public Constructors
| PlacePicker.IntentBuilder() Creates a new builder for an intent to launch the Place Picker UI.

Public Methods
Intent | build(Activity activity) Checks that Google Play Services is available and retrieves the Intent as configured so far by the Builder.
PlacePicker.IntentBuilder | setLatLngBounds(LatLngBounds latLngBounds) Sets the starting viewport for the map.

[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 PlacePicker.IntentBuilder ()

Creates a new builder for an intent to launch the Place Picker UI.

## Public Methods

#### public Intent build (Activity activity)

Checks that Google Play Services is available and retrieves the Intent as configured so far 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 error causing this can be resolved by the user.

#### public PlacePicker.IntentBuilder setLatLngBounds (LatLngBounds latLngBounds)

Sets the starting viewport for the map. The viewport is an area defined by two sets of latitude/longitude coordinates marking the top left and bottom right corners.

If unspecified, the map will be centered at the device's current location.