Loading...
Searching...
No Matches

Interface for a building with multiple floors (Sublocations). Allows selecting the active floor directly via setActiveSublocationId. More...

#include <com/navigine/idl/objc/NCBuilding.h>

Inherits NSObject.

Instance Methods

(nonnull NSArray< NCSublocation * > *) - getSublocations
 
(int32_t) - getActiveSublocationId
 
(void) - setActiveSublocationId:
 

Properties

BOOL valid
 

Detailed Description

Interface for a building with multiple floors (Sublocations). Allows selecting the active floor directly via setActiveSublocationId.

Definition at line 19 of file NCBuilding.h.

Method Documentation

◆ getActiveSublocationId

- (int32_t) getActiveSublocationId

Swift code snippet:

let activeFloorId = activeBuilding.getActiveSublocationId()
print("Active sublocation id: \‍(activeFloorId)")

Objective C code snippet:

int32_t activeFloorId = [activeBuilding getActiveSublocationId];
NSLog(@"Active sublocation id: %d", activeFloorId);

◆ getSublocations

- (nonnull NSArray< NCSublocation * > *) getSublocations

Swift code snippet:

let floors = activeBuilding.getSublocations()
print("Focused building, floor count: \‍(floors.count)")

Objective C code snippet:

NSArray<id<NCSublocation>> *floors = [activeBuilding getSublocations];
NSLog(@"Focused building, floor count: %lu", (unsigned long)floors.count);

◆ setActiveSublocationId:

- (void) setActiveSublocationId: (int32_t) activeSublocationId

Swift code snippet:

activeBuilding.setActiveSublocationId(activeFloorId)

Objective C code snippet:

[activeBuilding setActiveSublocationId:activeFloorId];

Property Documentation

◆ valid

- (BOOL) valid
readnonatomicassign

Tells if this object is valid or not. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now.

Definition at line 66 of file NCBuilding.h.


The documentation for this class was generated from the following file: