MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPBuilding.h
Go to the documentation of this file.
1//
2// MPBuilding.h
3// MapsIndoors SDK for iOS
4//
5// Created by Daniel Nielsen on 9/9/13.
6// Copyright (c) 2017 MapsPeople A/S. All rights reserved.
7//
8
9#import "MPJSONModel.h"
10
11@class GMSCoordinateBounds;
12@class GMSMapView;
13@class MPFloor;
14@class MPLocationField;
15@class MPPoint;
16@protocol MPBuilding;
17@protocol MPFloor;
18@protocol MPLocationField;
19
23@protocol MPBuildingDelegate <NSObject>
28@required
29- (void) onBuildingReady: (nonnull NSString*)buildingId;
30@end
31
35@interface MPBuilding : MPJSONModel
39@property (nonatomic, strong, nullable) NSNumber* currentFloor;
43@property (nonatomic, weak, nullable) id <MPBuildingDelegate> delegate;
47@property (nonatomic, weak, nullable) GMSMapView* map;
51@property (nonatomic, strong, nullable) NSNumber* floorsReady;
55@property (nonatomic, strong, nullable) NSString* externalId;
57@property (nonatomic, strong, nullable) NSString* buildingId;
59@property (nonatomic, strong, nullable) NSString* address;
61@property (nonatomic, strong, nullable) NSString* administrativeId;
63@property (nonatomic, strong, nullable) NSMutableDictionary<NSString*, MPFloor*><MPFloor>* floors;
65@property (nonatomic, strong, nullable) NSString* name;
67@property (nonatomic, strong, nullable) MPPoint* anchor;
69@property (nonatomic, strong, nullable) NSArray<NSArray*>* bounds;
70
74@property (nonatomic, strong, nullable, readonly) NSString* venueId;
75
79@property (nonatomic, strong, nullable, readonly) NSNumber* defaultFloor;
83@property (nonatomic, strong, nullable, readonly) NSDictionary<NSString*, MPLocationField*><MPLocationField> *fields;
84
88- (nullable MPFloor*) getFloor;
92- (nullable NSNumber*) getInitFloor;
96- (nullable NSNumber*) getFloors;
100- (nullable NSArray<MPFloor*>*) getFloorArray;
105- (void) setFloor: (nullable NSNumber*)floor;
111- (void) showBuilding:(nullable NSNumber*) newFloor onMap:(nullable GMSMapView*)map DEPRECATED_ATTRIBUTE;
115- (void) updateBuildingTiles DEPRECATED_ATTRIBUTE;
119- (void) hideBuilding DEPRECATED_ATTRIBUTE;
123- (nullable GMSCoordinateBounds *)getBuildingBounds;
124
125@end
Definition MPBuilding.h:36
nullable NSNumber * getInitFloor()
NSString * address
Get building address.
Definition MPBuilding.h:59
NSString * venueId
Definition MPBuilding.h:74
nullable MPFloor * getFloor()
NSString * administrativeId
Get building administrative id.
Definition MPBuilding.h:61
NSString * buildingId
Get building id.
Definition MPBuilding.h:57
NSDictionary< NSString *, MPLocationField * >< MPLocationField > * fields
Definition MPBuilding.h:83
nullable NSNumber * getFloors()
NSString * name
Get building name.
Definition MPBuilding.h:65
NSMutableDictionary< NSString *, MPFloor * >< MPFloor > * floors
Get building floors.
Definition MPBuilding.h:63
NSArray< NSArray * > * bounds
Get building bounds.
Definition MPBuilding.h:69
id< MPBuildingDelegate > delegate
Definition MPBuilding.h:43
GMSMapView * map
Definition MPBuilding.h:47
void updateBuildingTiles()
nullable GMSCoordinateBounds * getBuildingBounds()
MPPoint * anchor
Get building anchor coordinate.
Definition MPBuilding.h:67
NSNumber * currentFloor
Definition MPBuilding.h:39
void hideBuilding()
NSString * externalId
Definition MPBuilding.h:55
NSNumber * floorsReady
Definition MPBuilding.h:51
nullable NSArray< MPFloor * > * getFloorArray()
NSNumber * defaultFloor
Definition MPBuilding.h:79
Definition MPFloor.h:17
Definition MPLocationField.h:21
Definition MPPoint.h:23