AI-generated Key Takeaways
-
The
GMSIndoorDisplayDelegateprotocol handles events related to indoor maps displayed on a Google Map. -
It provides optional methods to notify when the active building changes, triggering
didChangeActiveBuilding. -
didChangeActiveLevelis raised whenever the active level of the indoor map is changed, including explicit changes.
GMSIndoorDisplayDelegate
@protocol GMSIndoorDisplayDelegate <NSObject>Delegate for events on GMSIndoorDisplay.
-
Raised when the activeBuilding has changed. The activeLevel will also have already been updated for the new building, but
-didChangeActiveLevel:will be raised after this method.Declaration
Swift
optional func didChangeActiveBuilding(_ building: GMSIndoorBuilding?)Objective-C
- (void)didChangeActiveBuilding:(nullable GMSIndoorBuilding *)building; -
Raised when the activeLevel has changed. This event is raised for all changes, including explicit setting of the property.
Declaration
Swift
optional func didChangeActiveLevel(_ level: GMSIndoorLevel?)Objective-C
- (void)didChangeActiveLevel:(nullable GMSIndoorLevel *)level;