java.lang.Object | |
↳ | com.google.android.gms.location.places.ui.PlacePicker |
The Place Picker UI is a dialog that allows a user to pick a Place
using an interactive
map.
Users can select the place they are at, or a place nearby. Apps can also initialize the map to a particular viewport. See the developer's guide for more details.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PlacePicker.IntentBuilder | Builder for a Place Picker launch intent. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | EXTRA_ACCOUNT_NAME | ||||||||||
String | EXTRA_GCORE_CLIENT_NAME | ||||||||||
String | EXTRA_GMSCORE_CLIENT_JAR_VERSION | ||||||||||
String | EXTRA_PRIMARY_COLOR | ||||||||||
String | EXTRA_PRIMARY_COLOR_DARK | ||||||||||
int | RESULT_ERROR | Indicates that an unspecified error occurred. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the attributions to be shown to the user if data from the selected
Place is
used.
| |||||||||||
Returns the viewport of the map at the time the user's selection was made.
| |||||||||||
Returns the
Place selected by the user.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Indicates that an unspecified error occurred.
If you encounter this error when developing your application, you may find it useful to
examine the ERROR logs for the 'Places' tag. See
isLoggable(String, int)
for information on how to enable this log
level.
Returns the attributions to be shown to the user if data from the selected Place
is
used.
We recommend placing this information below any place information. See Displaying Attributions for more details.
intent | The result Intent that was provided in
onActivityResult(int, int, Intent) . |
---|
Returns the viewport of the map at the time the user's selection was made.
intent | The result Intent that was provided in
onActivityResult(int, int, Intent) . |
---|
LatLngBounds
representing the map's viewport, or null if the user did not
make a selection.
Returns the Place
selected by the user.
intent | The result Intent that was provided in
onActivityResult(int, int, Intent) . |
---|---|
context | Your application's context. |
Place
, or null if no selection was made.