GMSAutocompleteFetcherDelegate
@protocol GMSAutocompleteFetcherDelegate <NSObject>
Protocol for objects that can receive callbacks from GMSAutocompleteFetcher.
-
Called when autocomplete predictions are available.
Declaration
Swift
func didAutocomplete(with predictions: [GMSAutocompletePrediction])
Objective-C
- (void)didAutocompleteWithPredictions: (nonnull NSArray<GMSAutocompletePrediction *> *)predictions;
Parameters
predictions
an array of
GMSAutocompletePrediction
objects. -
Called when an autocomplete request returns an error.
Declaration
Swift
func didFailAutocompleteWithError(_ error: any Error)
Objective-C
- (void)didFailAutocompleteWithError:(nonnull NSError *)error;
Parameters
error
the error that was received.