AI-generated Key Takeaways
-
GMSIndoorLevel
objects represent a single level within a building, and multiple buildings can share the same level instance. -
Each level has a localized
name
property for full display (e.g., "Ground floor") and ashortName
property for abbreviated display (e.g., "1"). -
Instances of
GMSIndoorLevel
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. -
You cannot directly initialize a
GMSIndoorLevel
object usinginit
; it is marked as unavailable.
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
-
Unavailable
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;