AutocompleteFilter | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Inherited Constants | Methods | Inherited Methods | [Expand All]
public class

# AutocompleteFilter

extends Object
implements Parcelable

java.lang.Object
↳ | com.google.android.gms.location.places.AutocompleteFilter

## Class Overview

Filter for customizing the autocomplete predictions from the Geo Data API.

## Summary

[Expand] Inherited Constants
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Public Methods
static AutocompleteFilter | create(Collection<Integer> placeTypes) Creates a filter for use with `getAutocompletePredictions(GoogleApiClient, String, LatLngBounds, AutocompleteFilter)` function.
boolean | equals(Object object)
Set<Integer> | getPlaceTypes() Returns the place types being requested.
int | hashCode()
String | toString()

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## Public Methods

#### public static AutocompleteFilter create (Collection<Integer> placeTypes)

Creates a filter for use with `getAutocompletePredictions(GoogleApiClient, String, LatLngBounds, AutocompleteFilter)` function.

##### Parameters

placeTypes | The place types of predictions to be returned. Only places that have a type in this set will be returned. A null or empty set is the same as a set containing all possible place types.

#### public boolean equals (Object object)

#### public Set<Integer> getPlaceTypes ()

Returns the place types being requested. If the empty set is returned, it means all place types are being requested.

#### public int hashCode ()

#### public String toString ()