AI-generated Key Takeaways
-
This documentation details globally available protocols for the Maps SDK for iOS.
-
These protocols define delegates and listeners for handling events and interactions within the map environment.
-
They cover areas such as navigation UI, custom views, screen metrics, and location updates.
-
Developers can use these protocols to customize map behavior and respond to user actions.
-
Protocols are available for features like indoor maps, panoramic views, and tile layers.
Protocols
The following protocols are available globally.
-
A delegate for events on
GMSMapViewrelated to the navigation UI.Declaration
Swift
protocol GMSMapViewNavigationUIDelegate : NSObjectProtocolObjective-C
@protocol GMSMapViewNavigationUIDelegate <NSObject> -
Protocol defining methods that support custom views specifying accessory UI elements applied to the primary view. Accessory views must implement this protocol in order to be visible.
Declaration
Swift
protocol GMSNavigationAccessoryView : NSObjectProtocolObjective-C
@protocol GMSNavigationAccessoryView <NSObject> -
Protocol for returning information about screen metrics.
This protocol is a subset of the screen-metric-related properties implemented by
UIScreen.Declaration
Swift
protocol GMSNavigationScreenMetricsObjective-C
@protocol GMSNavigationScreenMetrics -
Listener for events on
GMSNavigator.Declaration
Swift
protocol GMSNavigatorListener : NSObjectProtocolObjective-C
@protocol GMSNavigatorListener <NSObject> -
Listener for events on
GMSRoadSnappedLocationProvider.Declaration
Swift
protocol GMSRoadSnappedLocationProviderListener : NSObjectProtocolObjective-C
@protocol GMSRoadSnappedLocationProviderListener <NSObject> -
An interface representing a feature’s metadata.
Do not save a reference to a particular feature object because the reference will not be stable.
Declaration
Swift
protocol Feature : NSObjectProtocolObjective-C
@protocol GMSFeature <NSObject> -
Delegate for events on
GMSIndoorDisplay.Declaration
Swift
protocol GMSIndoorDisplayDelegate : NSObjectProtocolObjective-C
@protocol GMSIndoorDisplayDelegate <NSObject> -
Delegate for events on
GMSMapView.Declaration
Swift
protocol GMSMapViewDelegate : NSObjectProtocolObjective-C
@protocol GMSMapViewDelegate <NSObject> -
Delegate for events on
GMSPanoramaView.Declaration
Swift
protocol GMSPanoramaViewDelegate : NSObjectProtocolObjective-C
@protocol GMSPanoramaViewDelegate <NSObject> -
GMSTileReceiveris provided toGMSTileLayerwhen a tile request is made, allowing the callback to be later (or immediately) invoked.Declaration
Swift
protocol GMSTileReceiver : NSObjectProtocolObjective-C
@protocol GMSTileReceiver <NSObject>