GooglePlaces Framework Reference

GMSAutocompleteFetcher

@interface GMSAutocompleteFetcher : NSObject

GMSAutocompleteFetcher is a wrapper around the lower-level autocomplete APIs that encapsulates some of the complexity of requesting autocomplete predictions as the user is typing. Calling sourceTextHasChanged will generally result in the provided delegate being called with autocomplete predictions for the queried text, with the following provisos:

  • The fetcher may not necessarily request predictions on every call of sourceTextHasChanged if several requests are made within a short amount of time.
  • The delegate will only be called with prediction results if those predictions are for the text supplied in the most recent call to sourceTextHasChanged.