Page Summary
-
This documentation details protocols available globally for the Places SDK for iOS.
-
These protocols enable communication between various Places SDK classes and the application.
-
They facilitate tasks such as autocomplete, place selection, and location biasing/restriction.
-
The protocols define delegate methods for handling user interactions and receiving results.
-
Developers can implement these protocols to customize the behavior of Places SDK features.
Protocols
The following protocols are available globally.
-
Deprecated
Use
GMSPlacesClient#fetchAutocompleteSuggestionsFromRequest:callback:instead.Declaration
Swift
protocol GMSAutocompleteFetcherDelegate : NSObjectProtocolObjective-C
@protocol GMSAutocompleteFetcherDelegate < NSObject > @required /** * Called when autocomplete predictions are available. * * @param predictions an array of `GMSAutocompletePrediction` objects. */ - ( void ) didAutocompleteWithPredictions :( NSArray < GMSAutocompletePrediction *> * ) predictions __GMS_AVAILABLE_BUT_DEPRECATED_MSG ( "Use <code>GMSPlacesClient#fetchAutocompleteSuggestionsFromRequest:callback:</code> " "instead." ) ; /** * Called when an autocomplete request returns an error. * * @param error the error that was received. */ - ( void ) didFailAutocompleteWithError :( NSError * ) error __GMS_AVAILABLE_BUT_DEPRECATED_MSG ( "Use <code>GMSPlacesClient#fetchAutocompleteSuggestionsFromRequest:callback:</code> " "instead." ) ; @end -
Deprecated
Use the
placeAutocompleteView extension in Places Swift SDK ( https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift ) instead.Protocol used by
GMSAutocompleteResultsViewController, to communicate the user’s interaction with the controller to the application.Declaration
Swift
protocol GMSAutocompleteResultsViewControllerDelegate : NSObjectProtocolObjective-C
@protocol GMSAutocompleteResultsViewControllerDelegate < NSObject > -
Deprecated
Use the
placeAutocompleteView extension in Places Swift SDK ( https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift ) instead.Protocol used by
GMSAutocompleteTableDataSource, to communicate the user’s interaction with the data source to the application.Declaration
Swift
protocol GMSAutocompleteTableDataSourceDelegate : NSObjectProtocolObjective-C
@protocol GMSAutocompleteTableDataSourceDelegate < NSObject > -
Deprecated
Use the
placeAutocompleteView extension in Places Swift SDK ( https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift ) instead.Protocol used by
GMSAutocompleteViewController, to communicate the user’s interaction with the controller to the application.Declaration
Swift
protocol GMSAutocompleteViewControllerDelegate : NSObjectProtocolObjective-C
@protocol GMSAutocompleteViewControllerDelegate < NSObject > -
Protocol for the AI-generated summary of the place.
Declaration
Swift
protocol GMSPlaceAISummary : NSObjectProtocolObjective-C
@protocol GMSPlaceAISummary < NSObject >
-
Protocol for specifying that the location can be used as search bias.
Declaration
Swift
protocol GMSPlaceLocationBias : NSCopying , NSObjectProtocolObjective-C
@protocol GMSPlaceLocationBias < NSObject , NSCopying > -
Protocol for specifying that the location can be used as search restriction.
Declaration
Swift
protocol GMSPlaceLocationRestriction : NSCopying , NSObjectProtocolObjective-C
@protocol GMSPlaceLocationRestriction < NSObject , NSCopying > -
Protocol for the response to a place search request.
Declaration
Swift
protocol GMSPlaceSearchResponse : NSObjectProtocolObjective-C
@protocol GMSPlaceSearchResponse < NSObject > -
Protocol for providing App Check tokens for Places SDK.
Declaration
Swift
protocol GMSPlacesAppCheckTokenProvider : NSObjectProtocolObjective-C
@protocol GMSPlacesAppCheckTokenProvider < NSObject >

