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:
 

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];

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