GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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.
-
Raised when the activeLevel has changed. This event is raised for all changes, including
explicit setting of the property.
Declaration
Objective-C
- (void)didChangeActiveLevel:(nullable GMSIndoorLevel *)level;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSIndoorDisplayDelegate\u003c/code\u003e handles events related to indoor maps, such as changes to the active building or level.\u003c/p\u003e\n"],["\u003cp\u003eThe delegate provides optional methods, \u003ccode\u003edidChangeActiveBuilding\u003c/code\u003e and \u003ccode\u003edidChangeActiveLevel\u003c/code\u003e, which are called when the active building or level is changed, respectively.\u003c/p\u003e\n"],["\u003cp\u003eWhen the active building changes, \u003ccode\u003edidChangeActiveBuilding\u003c/code\u003e is raised first, followed by \u003ccode\u003edidChangeActiveLevel\u003c/code\u003e to reflect the new building's active level.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edidChangeActiveLevel\u003c/code\u003e is triggered for any changes to the active level, including explicit settings.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation Framework Reference\n\nGMSIndoorDisplayDelegate\n========================\n\n @protocol GMSIndoorDisplayDelegate \u003cNSObject\u003e\n\nDelegate for events on [GMSIndoorDisplay](../Classes/GMSIndoorDisplay.html).\n- `\n ``\n ``\n `\n\n ### [-didChangeActiveBuilding:](#/c:objc(pl)GMSIndoorDisplayDelegate(im)didChangeActiveBuilding:)\n\n `\n ` \n Raised when the activeBuilding has changed. The activeLevel will also have already been updated\n for the new building, but [-didChangeActiveLevel:](../Protocols/GMSIndoorDisplayDelegate.html#/c:objc(pl)GMSIndoorDisplayDelegate(im)didChangeActiveLevel:) will be raised after this method. \n\n #### Declaration\n\n Swift \n\n optional func didChangeActiveBuilding(_ building: ../Classes/GMSIndoorBuilding.html?)\n\n Objective-C \n\n - (void)didChangeActiveBuilding:(nullable ../Classes/GMSIndoorBuilding.html *)building;\n\n- `\n ``\n ``\n `\n\n ### [-didChangeActiveLevel:](#/c:objc(pl)GMSIndoorDisplayDelegate(im)didChangeActiveLevel:)\n\n `\n ` \n Raised when the activeLevel has changed. This event is raised for all changes, including\n explicit setting of the property. \n\n #### Declaration\n\n Swift \n\n optional func didChangeActiveLevel(_ level: ../Classes/GMSIndoorLevel.html?)\n\n Objective-C \n\n - (void)didChangeActiveLevel:(nullable ../Classes/GMSIndoorLevel.html *)level;"]]