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

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.

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.