public final class PlaceAutocomplete extends Object
If the user exits the autocomplete activity without choosing a place, the calling activity will
receive Activity.RESULT_CANCELED.
| Modifier and Type | Class and Description |
|---|---|
static class |
PlaceAutocomplete.IntentBuilder
Builder for the Place Autocomplete launch intent.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
clearRecentHistory(Context context)
If the search history is being displayed in the search results section you should provide a
setting for the user to clear their search history.
|
static CarmenFeature |
getPlace(Intent data)
Returns the
CarmenFeature selected by the user. |
public static CarmenFeature getPlace(Intent data)
CarmenFeature selected by the user.data - the result Intent that was provided in
Activity.onActivityResult(int, int, Intent)CarmenFeaturepublic static void clearRecentHistory(Context context)
context - your application's context© 2015–2019 Mapbox. All rights reserved.