SPMapViewBuilding
Objective-C
@interface SPMapViewBuilding : NSObject
Swift
class SPMapViewBuilding : NSObject
Object for storing building information visible on the map. This class is mainly used internally by the SDK.
-
Recommended constructor for creating SPMapViewBuilding objects.
Declaration
Objective-C
+ (nullable instancetype)buildingWithAttributes:(nonnull NSDictionary *)attrs;
Swift
convenience init?(attributes attrs: [AnyHashable : Any] = [:])
Parameters
attrs
building attributes
Return Value
new instance of SPMapViewBuilding
-
Get unique identifier for building
Declaration
Objective-C
- (nonnull NSString *)buildingId;
Swift
func buildingId() -> String
Return Value
building identifier
-
Change the currently selected floor for the building.
Declaration
Objective-C
- (BOOL)setSelectedFloor:(nonnull NSNumber *)floorIndex;
Swift
func setSelectedFloor(_ floorIndex: NSNumber) -> Bool
Parameters
floorIndex
index to select
Return Value
true if floor selection was successful