GMSAutocompleteViewControllerDelegate
Deprecated
Use the placeAutocomplete View extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.
@protocol GMSAutocompleteViewControllerDelegate <NSObject>Protocol used by GMSAutocompleteViewController, to communicate the user’s interaction
with the controller to the application.
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.Called when a place has been selected from the available autocomplete predictions. Implementations of this method should dismiss the view controller as the view controller will not dismiss itself. DeclarationSwift func viewController(_ viewController: GMSAutocompleteViewController, didAutocompleteWith place: GMSPlace)Objective-C - (void)viewController:(nonnull GMSAutocompleteViewController *)viewController didAutocompleteWithPlace:(nonnull GMSPlace *)place;ParametersviewControllerThe GMSAutocompleteViewControllerthat generated the event.placeThe GMSPlacethat was returned.
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.Called when a non-retryable error occurred when retrieving autocomplete predictions or place details. A non-retryable error is defined as one that is unlikely to be fixed by immediately retrying the operation. Only the following values of GMSPlacesErrorCodeare retryable:- kGMSPlacesNetworkError
- kGMSPlacesServerError
- kGMSPlacesInternalError
 DeclarationSwift func viewController(_ viewController: GMSAutocompleteViewController, didFailAutocompleteWithError error: any Error)Objective-C - (void)viewController:(nonnull GMSAutocompleteViewController *)viewController didFailAutocompleteWithError:(nonnull NSError *)error;ParametersviewControllerThe GMSAutocompleteViewControllerthat generated the event.errorThe NSErrorthat was returned.
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.Called when the user taps the Cancel button in a GMSAutocompleteViewController.Implementations of this method should dismiss the view controller as the view controller will not dismiss itself. DeclarationSwift func wasCancelled(_ viewController: GMSAutocompleteViewController)Objective-C - (void)wasCancelled:(nonnull GMSAutocompleteViewController *)viewController;ParametersviewControllerThe GMSAutocompleteViewControllerthat generated the event.
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.Called when the user selects an autocomplete prediction from the list but before requesting place details. Returning NO from this method will suppress the place details fetch and didAutocompleteWithPlace will not be called. DeclarationSwift optional func viewController(_ viewController: GMSAutocompleteViewController, didSelect prediction: GMSAutocompletePrediction) -> BoolObjective-C - (BOOL)viewController:(nonnull GMSAutocompleteViewController *)viewController didSelectPrediction:(nonnull GMSAutocompletePrediction *)prediction;ParametersviewControllerThe GMSAutocompleteViewControllerthat generated the event.predictionThe GMSAutocompletePredictionthat was selected.
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.Called once every time new autocomplete predictions are received. DeclarationSwift optional func didUpdateAutocompletePredictions(_ viewController: GMSAutocompleteViewController)Objective-C - (void)didUpdateAutocompletePredictions: (nonnull GMSAutocompleteViewController *)viewController;ParametersviewControllerThe GMSAutocompleteViewControllerthat generated the event.
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.Called once immediately after a request for autocomplete predictions is made. DeclarationSwift optional func didRequestAutocompletePredictions(_ viewController: GMSAutocompleteViewController)Objective-C - (void)didRequestAutocompletePredictions: (nonnull GMSAutocompleteViewController *)viewController;ParametersviewControllerThe GMSAutocompleteViewControllerthat generated the event.