GooglePlaces Framework Reference

  • GMSAutocompletePredictionsCallback is a callback type used for receiving autocomplete results.

  • It provides an array of GMSAutocompletePrediction objects, representing possible completions for a search query, along with an NSError object if an error occurred.

  • This callback is utilized with GMSPlacesClient for autocomplete functionality within the Google Maps SDK for iOS.

GMSAutocompletePredictionsCallback

Deprecated

This method is replaced by GMSAutocompleteSuggestionsCallback and will be removed in a future release.

typedef void (^GMSAutocompletePredictionsCallback)(
    NSArray<GMSAutocompletePrediction *> *_Nullable, NSError *_Nullable)

Callback type for receiving autocompletion results. results is an array of GMSAutocompletePredictions representing candidate completions of the query.