GMSAutocompleteTableDataSourceDelegate
Deprecated
Use the placeAutocomplete View extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.
@protocol GMSAutocompleteTableDataSourceDelegate <NSObject>Protocol used by GMSAutocompleteTableDataSource, to communicate the user’s interaction with the
data source 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.
Declaration
Swift
func tableDataSource(_ tableDataSource: GMSAutocompleteTableDataSource, didAutocompleteWith place: GMSPlace)Objective-C
- (void)tableDataSource: (nonnull GMSAutocompleteTableDataSource *)tableDataSource didAutocompleteWithPlace:(nonnull GMSPlace *)place;Parameters
tableDataSourceThe
GMSAutocompleteTableDataSourcethat 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
Declaration
Swift
func tableDataSource(_ tableDataSource: GMSAutocompleteTableDataSource, didFailAutocompleteWithError error: any Error)Objective-C
- (void)tableDataSource: (nonnull GMSAutocompleteTableDataSource *)tableDataSource didFailAutocompleteWithError:(nonnull NSError *)error;Parameters
tableDataSourceThe
GMSAutocompleteTableDataSourcethat 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 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.
Declaration
Swift
optional func tableDataSource(_ tableDataSource: GMSAutocompleteTableDataSource, didSelect prediction: GMSAutocompletePrediction) -> BoolObjective-C
- (BOOL)tableDataSource: (nonnull GMSAutocompleteTableDataSource *)tableDataSource didSelectPrediction:(nonnull GMSAutocompletePrediction *)prediction;Parameters
tableDataSourceThe
GMSAutocompleteTableDataSourcethat 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.
Declaration
Swift
optional func didUpdateAutocompletePredictions(for tableDataSource: GMSAutocompleteTableDataSource)Objective-C
- (void)didUpdateAutocompletePredictionsForTableDataSource: (nonnull GMSAutocompleteTableDataSource *)tableDataSource;Parameters
tableDataSourceThe
GMSAutocompleteTableDataSourcethat 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.
Declaration
Swift
optional func didRequestAutocompletePredictions(for tableDataSource: GMSAutocompleteTableDataSource)Objective-C
- (void)didRequestAutocompletePredictionsForTableDataSource: (nonnull GMSAutocompleteTableDataSource *)tableDataSource;Parameters
tableDataSourceThe
GMSAutocompleteTableDataSourcethat generated the event.