PlacePicker.IntentBuilder | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
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(Context)` and pass the intent to `startActivityForResult(android.content.Intent, int)`.

## Summary

Public Constructors
| PlacePicker.IntentBuilder() Create a new builder for launching the Place Picker UI.

Public Methods
Intent | build(Context context) Retrieve the Intent as configured so far by the Builder.
PlacePicker.IntentBuilder | setLatLngBounds(LatLngBounds latLngBounds) Sets a starting `LatLngBounds` 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()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Public Constructors

#### public PlacePicker.IntentBuilder ()

Create a new builder for launching the Place Picker UI.

## Public Methods

#### public Intent build (Context context)

Retrieve the Intent as configured so far by the Builder.

##### Returns

- The current Intent being configured by this builder.

##### Throws

| GooglePlayServicesNotAvailableException
GooglePlayServicesRepairableException |
GooglePlayServicesNotAvailableException |

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

Sets a starting `LatLngBounds` for the map. This will be used in the initial query. If unspecified, starts at the device's current location.