MPBuilding
@interface MPBuilding
Holds relevant data for a single building, and provides a way to interact with the buildings floor levels.
-
Holds the current floor.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSNumber *currentFloor;
Swift
var currentFloor: NSNumber! { get set }
-
Delegate that holds the building ready event method. Relevant when using offline mode, as it will take a while to load the database upon first app start.
Declaration
Objective-C
@property (readwrite, atomic) id delegate;
Swift
weak var delegate: AnyObject! { get set }
-
Simple counter that keeps track of how many floors and related tile layers are ready.
Declaration
Objective-C
@property (assign, readwrite, atomic) NSNumber *floorsReady;
Swift
var floorsReady: NSNumber! { get set }
-
Undocumented
Declaration
Objective-C
@interface MPBuilding
-
Undocumented
Declaration
Objective-C
@interface MPBuilding
-
Undocumented
Declaration
Objective-C
@interface MPBuilding
-
Undocumented
Declaration
Objective-C
@interface MPBuilding
-
Undocumented
Declaration
Objective-C
@interface MPBuilding
-
Undocumented
Declaration
Objective-C
@interface MPBuilding
-
Get the initial/default floor upon creation.
Declaration
Objective-C
- (NSNumber *)getInitFloor;
Swift
func getInitFloor() -> NSNumber!
-
Get the number of floors.
Declaration
Objective-C
- (NSNumber *)getFloors;
Swift
func getFloors() -> NSNumber!
-
Get the floors as an array of MPFloor.
Declaration
Objective-C
- (NSArray *)getFloorArray;
Swift
func getFloorArray() -> [Any]!
-
Set the current floor property (without affecting the building display). - parameter: floor The floor number to replace current floor with.
Declaration
Objective-C
- (void)setFloor:(NSNumber *)floor;
Swift
func setFloor(_ floor: NSNumber!)
Parameters
floor
The floor number to replace current floor with.
-
Use this method to actually shift floor and show the building level. - parameter: floor The floor number that represents the building level.
Declaration
Objective-C
- (void)showBuilding:(NSNumber *)newFloor onMap:(id)map;
Swift
func show(_ newFloor: NSNumber!, onMap map: Any!)
Parameters
floor
The floor number that represents the building level.
-
Updates the current floor tile layer by clearing the tile cache.
Declaration
Objective-C
- (void)updateBuildingTiles;
Swift
func updateTiles()
-
Hide the building from the map.
Declaration
Objective-C
- (void)hideBuilding;
Swift
func hide()
-
Get the geographic bounds for the building
Declaration
Objective-C
- (id)getBuildingBounds;
Swift
func getBounds() -> Any!