This class is deprecated.
The Google Play Services Places SDK is deprecated. A new SDK is available.
See the client
migration guide for more information.
A fragment that provides auto-completion for places.
Use this class only if you are targeting API 12 and above. Otherwise, use SupportPlaceAutocompleteFragment.
Inherited Constant Summary
int | TRIM_MEMORY_BACKGROUND | |
int | TRIM_MEMORY_COMPLETE | |
int | TRIM_MEMORY_MODERATE | |
int | TRIM_MEMORY_RUNNING_CRITICAL | |
int | TRIM_MEMORY_RUNNING_LOW | |
int | TRIM_MEMORY_RUNNING_MODERATE | |
int | TRIM_MEMORY_UI_HIDDEN |
Public Constructor Summary
Public Method Summary
void |
setBoundsBias(LatLngBounds bounds)
Biases the autocomplete results to a particular area.
|
void | |
void |
setHint(CharSequence
hint)
Sets the hint text to display in the search input field when there is no text
entered.
|
void |
setOnPlaceSelectedListener(PlaceSelectionListener
listener)
Sets a listener that will be notified when a place is selected.
|
void |
Inherited Method Summary
void | |
final boolean |
equals(Object arg0)
|
final Activity |
getActivity()
|
boolean |
getAllowEnterTransitionOverlap()
|
boolean |
getAllowReturnTransitionOverlap()
|
final Bundle |
getArguments()
|
final FragmentManager |
getChildFragmentManager()
|
Context |
getContext()
|
Transition |
getEnterTransition()
|
Transition |
getExitTransition()
|
final FragmentManager |
getFragmentManager()
|
final Object |
getHost()
|
final int |
getId()
|
final LayoutInflater |
getLayoutInflater()
|
LoaderManager |
getLoaderManager()
|
final Fragment |
getParentFragment()
|
Transition |
getReenterTransition()
|
final Resources |
getResources()
|
final boolean |
getRetainInstance()
|
Transition |
getReturnTransition()
|
Transition |
getSharedElementEnterTransition()
|
Transition |
getSharedElementReturnTransition()
|
final String |
getString(int arg0, Object...
arg1)
|
final String |
getString(int arg0)
|
final String |
getTag()
|
final Fragment |
getTargetFragment()
|
final int |
getTargetRequestCode()
|
final CharSequence |
getText(int arg0)
|
boolean |
getUserVisibleHint()
|
View |
getView()
|
final int |
hashCode()
|
static Fragment | |
static Fragment | |
final boolean |
isAdded()
|
final boolean |
isDetached()
|
final boolean |
isHidden()
|
final boolean |
isInLayout()
|
final boolean |
isRemoving()
|
final boolean |
isResumed()
|
final boolean |
isStateSaved()
|
final boolean |
isVisible()
|
void |
onActivityCreated(Bundle arg0)
|
void |
onActivityResult(int arg0, int arg1, Intent
arg2)
|
void |
onAttach(Activity
arg0)
|
void |
onAttach(Context
arg0)
|
void |
onAttachFragment(Fragment
arg0)
|
void |
onConfigurationChanged(Configuration
arg0)
|
boolean |
onContextItemSelected(MenuItem
arg0)
|
void |
onCreate(Bundle arg0)
|
Animator |
onCreateAnimator(int arg0, boolean arg1, int
arg2)
|
void | |
void | |
View | |
void |
onDestroy()
|
void |
onDestroyOptionsMenu()
|
void |
onDestroyView()
|
void |
onDetach()
|
LayoutInflater |
onGetLayoutInflater(Bundle arg0)
|
void |
onHiddenChanged(boolean arg0)
|
void | |
void | |
void | |
void |
onLowMemory()
|
void |
onMultiWindowModeChanged(boolean arg0)
|
void |
onMultiWindowModeChanged(boolean arg0, Configuration
arg1)
|
boolean |
onOptionsItemSelected(MenuItem
arg0)
|
void |
onOptionsMenuClosed(Menu arg0)
|
void |
onPause()
|
void |
onPictureInPictureModeChanged(boolean arg0,
Configuration
arg1)
|
void |
onPictureInPictureModeChanged(boolean arg0)
|
void |
onPrepareOptionsMenu(Menu arg0)
|
void |
onRequestPermissionsResult(int arg0, String[]
arg1, int[] arg2)
|
void |
onResume()
|
void |
onSaveInstanceState(Bundle arg0)
|
void |
onStart()
|
void |
onStop()
|
void |
onTrimMemory(int arg0)
|
void | |
void |
onViewStateRestored(Bundle arg0)
|
void |
postponeEnterTransition()
|
void |
registerForContextMenu(View arg0)
|
final void |
requestPermissions(String[]
arg0, int arg1)
|
void |
setAllowEnterTransitionOverlap(boolean arg0)
|
void |
setAllowReturnTransitionOverlap(boolean arg0)
|
void |
setArguments(Bundle arg0)
|
void |
setEnterSharedElementCallback(SharedElementCallback
arg0)
|
void |
setEnterTransition(Transition
arg0)
|
void |
setExitSharedElementCallback(SharedElementCallback
arg0)
|
void |
setExitTransition(Transition
arg0)
|
void |
setHasOptionsMenu(boolean arg0)
|
void |
setInitialSavedState(Fragment.SavedState
arg0)
|
void |
setMenuVisibility(boolean arg0)
|
void |
setReenterTransition(Transition
arg0)
|
void |
setRetainInstance(boolean arg0)
|
void |
setReturnTransition(Transition
arg0)
|
void |
setSharedElementEnterTransition(Transition
arg0)
|
void |
setSharedElementReturnTransition(Transition
arg0)
|
void |
setTargetFragment(Fragment
arg0, int arg1)
|
void |
setUserVisibleHint(boolean arg0)
|
boolean |
shouldShowRequestPermissionRationale(String arg0)
|
void |
startActivity(Intent
arg0)
|
void | |
void |
startActivityForResult(Intent
arg0, int arg1)
|
void | |
void |
startIntentSenderForResult(IntentSender
arg0, int arg1, Intent
arg2, int arg3, int arg4, int arg5, Bundle arg6)
|
void |
startPostponedEnterTransition()
|
String |
toString()
|
void |
unregisterForContextMenu(View arg0)
|
abstract void |
onTrimMemory(int arg0)
|
abstract void |
abstract void |
onConfigurationChanged(Configuration
arg0)
|
abstract void |
onLowMemory()
|
Public Constructors
public PlaceAutocompleteFragment ()
Public Methods
public void setBoundsBias (LatLngBounds bounds)
Biases the autocomplete results to a particular area.
If the bounds are unset or explicitly set to null, the autocomplete results will be biased to the device's approximate location.
Parameters
bounds | A LatLngBounds object that defines a geographical area using two sets of latitude/longitude coordinates marking the top left and bottom right corners. |
---|
public void setFilter (AutocompleteFilter filter)
Sets a filter on autocomplete predictions.
Parameters
filter | A filter to use for restricting the returned predictions. If null, a filter with no constraints will be used. |
---|
public void setHint (CharSequence hint)
Sets the hint text to display in the search input field when there is no text entered.
public void setOnPlaceSelectedListener (PlaceSelectionListener listener)
Sets a listener that will be notified when a place is selected.
Parameters
listener | The listener that should be notified. |
---|
public void setText (CharSequence text)
Sets the text to display in the search input field.