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)
.
Public Constructor Summary
PlacePicker.IntentBuilder()
Creates a new builder for an intent to launch the Place Picker UI.
|
Public Method Summary
Intent | |
PlacePicker.IntentBuilder |
setLatLngBounds(LatLngBounds latLngBounds)
Sets the starting viewport for the map.
|
Inherited Method Summary
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.