[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-08 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGMSAutocompleteFetcherDelegate\u003c/code\u003e protocol handles callbacks from \u003ccode\u003eGMSAutocompleteFetcher\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to receive autocomplete predictions or error messages during the autocomplete process.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edidAutocompleteWithPredictions:\u003c/code\u003e is called when predictions are available, providing an array of \u003ccode\u003eGMSAutocompletePrediction\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edidFailAutocompleteWithError:\u003c/code\u003e is called if an error occurs during the autocomplete request, providing an \u003ccode\u003eNSError\u003c/code\u003e object.\u003c/p\u003e\n"]]],["The `GMSAutocompleteFetcherDelegate` protocol handles callbacks from `GMSAutocompleteFetcher`. It defines two key methods: `didAutocompleteWithPredictions:`, which is called when autocomplete predictions are available and provides an array of `GMSAutocompletePrediction` objects; and `didFailAutocompleteWithError:`, which is invoked when an autocomplete request encounters an error, passing the received error as a parameter. These methods enable the delegate to manage successful prediction retrieval and error handling.\n"],null,["GMSAutocompleteFetcherDelegate \n\n @protocol GMSAutocompleteFetcherDelegate \u003cNSObject\u003e\n\nProtocol for objects that can receive callbacks from GMSAutocompleteFetcher.\n- `\n ``\n ``\n `\n\n [-didAutocompleteWithPredictions:](#/c:objc(pl)GMSAutocompleteFetcherDelegate(im)didAutocompleteWithPredictions:)`\n ` \n Called when autocomplete predictions are available. \n\n Declaration \n Swift \n\n func didAutocomplete(with predictions: [../Classes/GMSAutocompletePrediction.html])\n\n Objective-C \n\n - (void)didAutocompleteWithPredictions:\n (nonnull NSArray\u003c../Classes/GMSAutocompletePrediction.html *\u003e *)predictions;\n\n Parameters\n\n |---------------------|---------------------------------------------------------------------------------------------|\n | ` `*predictions*` ` | an array of [GMSAutocompletePrediction](../Classes/GMSAutocompletePrediction.html) objects. |\n\n- `\n ``\n ``\n `\n\n [-didFailAutocompleteWithError:](#/c:objc(pl)GMSAutocompleteFetcherDelegate(im)didFailAutocompleteWithError:)`\n ` \n Called when an autocomplete request returns an error. \n\n Declaration \n Swift \n\n func didFailAutocompleteWithError(_ error: any Error)\n\n Objective-C \n\n - (void)didFailAutocompleteWithError:(nonnull NSError *)error;\n\n Parameters\n\n |---------------|------------------------------|\n | ` `*error*` ` | the error that was received. |"]]