Android APIs
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

Fields
protected final Intent mIntent
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.
Protected Methods
Intent build(Context context)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected final Intent mIntent

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.

Protected Methods