GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSIndoorLevel
@interface GMSIndoorLevel : NSObject
- (instancetype)init NS_UNAVAILABLE;
/** Localized display name for the level, e.g. "Ground floor". */
@property(nonatomic, copy, readonly, nullable) NSString *name;
/** Localized short display name for the level, e.g. "1". */
@property(nonatomic, copy, readonly, nullable) NSString *shortName;
@end
-
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Localized display name for the level, e.g. “Ground floor”.
Declaration
Swift
var name: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *name;
-
Localized short display name for the level, e.g. “1”.
Declaration
Swift
var shortName: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *shortName;
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\u003eGMSIndoorLevel\u003c/code\u003e objects represent a single level within a building, and multiple buildings can share the same level instance.\u003c/p\u003e\n"],["\u003cp\u003eEach level has a localized \u003ccode\u003ename\u003c/code\u003e property for full display (e.g., "Ground floor") and a \u003ccode\u003eshortName\u003c/code\u003e property for abbreviated display (e.g., "1").\u003c/p\u003e\n"],["\u003cp\u003eInstances of \u003ccode\u003eGMSIndoorLevel\u003c/code\u003e are compared based on the level itself, not the level number or name, meaning levels with different names/numbers can be considered equal if they represent the same physical level.\u003c/p\u003e\n"],["\u003cp\u003eYou cannot directly initialize a \u003ccode\u003eGMSIndoorLevel\u003c/code\u003e object using \u003ccode\u003einit\u003c/code\u003e; it is marked as unavailable.\u003c/p\u003e\n"]]],["GMSIndoorLevel describes a building's level, allowing multiple buildings to share one. It includes two main properties: `name`, a localized display name (e.g., \"Ground floor\"), and `shortName`, a localized short display name (e.g., \"1\"). The `init` method is unavailable. Level instances can compare as equal despite differing names or numbers when shared between buildings. The information provided can be accessed via Swift and Objective-C.\n"],null,["# GoogleNavigation Framework Reference\n\nGMSIndoorLevel\n==============\n\n @interface GMSIndoorLevel : NSObject\n\n - (instancetype)init NS_UNAVAILABLE;\n\n /** Localized display name for the level, e.g. \"Ground floor\". */\n @property(nonatomic, copy, readonly, nullable) NSString *name;\n\n /** Localized short display name for the level, e.g. \"1\". */\n @property(nonatomic, copy, readonly, nullable) NSString *shortName;\n\n @end\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMSIndoorLevel(im)init)\n\n `\n ` \n Unavailable \n\n #### Declaration\n\n Objective-C \n\n - (instancetype)init NS_UNAVAILABLE;\n\n- `\n ``\n ``\n `\n\n ### [name](#/c:objc(cs)GMSIndoorLevel(py)name)\n\n `\n ` \n Localized display name for the level, e.g. \"Ground floor\". \n\n #### Declaration\n\n Swift \n\n var name: String? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSString *name;\n\n- `\n ``\n ``\n `\n\n ### [shortName](#/c:objc(cs)GMSIndoorLevel(py)shortName)\n\n `\n ` \n Localized short display name for the level, e.g. \"1\". \n\n #### Declaration\n\n Swift \n\n var shortName: String? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSString *shortName;"]]