# GoogleMaps Framework Reference

# GMSIndoorBuilding

    @interface GMSIndoorBuilding : NSObject

Describes a building which contains levels.
- `


  ### [levels](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSIndoorBuilding#/c:objc(cs)GMSIndoorBuilding(py)levels)


  ` Array of GMSIndoorLevel describing the levels which make up the building.
  The levels are in 'display order' from top to bottom.

  #### Declaration

  Swift

      var levels: [https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSIndoorLevel.html] { get }

  Objective-C

      @property (nonatomic, strong, readonly) NSArray<https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSIndoorLevel.html *> *_Nonnull levels;

- `


  ### [defaultLevelIndex](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSIndoorBuilding#/c:objc(cs)GMSIndoorBuilding(py)defaultLevelIndex)


  ` Index in the levels array of the default level.

  #### Declaration

  Swift

      var defaultLevelIndex: UInt { get }

  Objective-C

      @property (nonatomic, readonly) NSUInteger defaultLevelIndex;

- `


  ### [underground](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSIndoorBuilding#/c:objc(cs)GMSIndoorBuilding(py)underground)


  ` If YES, the building is entirely underground and supports being hidden.

  #### Declaration

  Swift

      var isUnderground: Bool { get }

  Objective-C

      @property (nonatomic, readonly, getter=isUnderground) BOOL underground;

- `


  ### [-init](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSIndoorBuilding#/c:objc(cs)GMSIndoorBuilding(im)init)


  ` Unavailable

  #### Declaration

  Objective-C

      - (instancetype)init NS_UNAVAILABLE;