GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSAutocompletePredictionsCallback
Callback type for receiving autocompletion results. results
is an array of
GMSAutocompletePredictions
representing candidate completions of the query.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSAutocompletePredictionsCallback\u003c/code\u003e is a callback type used for receiving autocomplete results.\u003c/p\u003e\n"],["\u003cp\u003eIt provides an array of \u003ccode\u003eGMSAutocompletePrediction\u003c/code\u003e objects, representing possible completions for a search query, along with an \u003ccode\u003eNSError\u003c/code\u003e object if an error occurred.\u003c/p\u003e\n"],["\u003cp\u003eThis callback is utilized with \u003ccode\u003eGMSPlacesClient\u003c/code\u003e for autocomplete functionality within the Google Maps SDK for iOS.\u003c/p\u003e\n"]]],["The `GMSAutocompletePredictionsCallback` is a callback type that delivers autocompletion results. It provides an array of `GMSAutocompletePredictions` representing potential completions of a user's query. The callback can also return an `NSError` if an error occurs. This callback is utilized within `GMSPlacesClient` for handling autocompletion functionality.\n"],null,["# GooglePlaces Framework Reference\n\nGMSAutocompletePredictionsCallback\n==================================\n\n typedef void (^GMSAutocompletePredictionsCallback)(\n NSArray\u003c../Classes/GMSAutocompletePrediction.html *\u003e *_Nullable, NSError *_Nullable)\n\nCallback type for receiving autocompletion results. `results` is an array of\n`GMSAutocompletePredictions` representing candidate completions of the query. \nSee\n\n[GMSPlacesClient](../Classes/GMSPlacesClient.html)"]]