GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSIndoorDisplay
@interface GMSIndoorDisplay : NSObject
Provides ability to observe or control the display of indoor level data.
Like GMSMapView
, GMSIndoorDisplay
may only be used from the main thread.
-
GMSIndoorDisplay
delegate
-
Provides the currently focused building, will be nil if there is no building with indoor data
currently under focus.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) GMSIndoorBuilding *activeBuilding;
-
Provides and controls the active level for activeBuilding. Will be updated whenever
activeBuilding changes, and may be set to any member of activeBuilding’s levels property. May
also be set to nil if the building is underground, to stop showing the building (the building
will remain active).
Will always be nil if activeBuilding is nil.
Any attempt to set it to an invalid value will be ignored.
Declaration
Objective-C
@property (nonatomic, nullable) GMSIndoorLevel *activeLevel;
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\u003eGMSIndoorDisplay\u003c/code\u003e allows observation and control of indoor level data display, similar to \u003ccode\u003eGMSMapView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the currently focused building (\u003ccode\u003eactiveBuilding\u003c/code\u003e) and its active level (\u003ccode\u003eactiveLevel\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eactiveLevel\u003c/code\u003e property can be manipulated to change the displayed level or hide the building while keeping it active.\u003c/p\u003e\n"],["\u003cp\u003eA delegate (\u003ccode\u003edelegate\u003c/code\u003e) can be assigned to receive updates and events related to indoor display changes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSIndoorDisplay\u003c/code\u003e operations should be performed on the main thread to ensure proper functionality.\u003c/p\u003e\n"]]],["`GMSIndoorDisplay` manages indoor level data display and must be used on the main thread. It allows observation and control via a delegate. `activeBuilding` property provides the currently focused building. `activeLevel` manages the visible level within the `activeBuilding`, updating with building changes. `activeLevel` can be set to a valid building's level or nil to hide the underground building, if no building is focused then it will be nil. Invalid `activeLevel` values are ignored.\n"],null,["# GoogleNavigation Framework Reference\n\nGMSIndoorDisplay\n================\n\n @interface GMSIndoorDisplay : NSObject\n\nProvides ability to observe or control the display of indoor level data.\n\nLike [GMSMapView](../Classes/GMSMapView.html), `GMSIndoorDisplay` may only be used from the main thread.\n- `\n ``\n ``\n `\n\n ### [delegate](#/c:objc(cs)GMSIndoorDisplay(py)delegate)\n\n `\n ` \n `GMSIndoorDisplay` delegate \n\n #### Declaration\n\n Swift \n\n weak var delegate: (any ../Protocols/GMSIndoorDisplayDelegate.html)? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) id\u003c../Protocols/GMSIndoorDisplayDelegate.html\u003e delegate;\n\n- `\n ``\n ``\n `\n\n ### [activeBuilding](#/c:objc(cs)GMSIndoorDisplay(py)activeBuilding)\n\n `\n ` \n Provides the currently focused building, will be nil if there is no building with indoor data\n currently under focus. \n\n #### Declaration\n\n Swift \n\n var activeBuilding: ../Classes/GMSIndoorBuilding.html? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Classes/GMSIndoorBuilding.html *activeBuilding;\n\n- `\n ``\n ``\n `\n\n ### [activeLevel](#/c:objc(cs)GMSIndoorDisplay(py)activeLevel)\n\n `\n ` \n Provides and controls the active level for activeBuilding. Will be updated whenever\n activeBuilding changes, and may be set to any member of activeBuilding's levels property. May\n also be set to nil if the building is underground, to stop showing the building (the building\n will remain active).\n\n Will always be nil if activeBuilding is nil.\n\n Any attempt to set it to an invalid value will be ignored. \n\n #### Declaration\n\n Swift \n\n var activeLevel: ../Classes/GMSIndoorLevel.html? { get set }\n\n Objective-C \n\n @property (nonatomic, nullable) ../Classes/GMSIndoorLevel.html *activeLevel;"]]