Class is used for storing location polygonal zones.
More...
#include <com/navigine/idl/objc/NCZone.h>
Inherits NSObject.
Class is used for storing location polygonal zones.
Referenced from Sublocation.
Definition at line 19 of file NCZone.h.
◆ alias
zone's alias.
Swift code snippet:
// Get zone alias
let alias = zone.getAlias()
print("Zone alias: \(alias ?? "nil")")
Objective C code snippet:
NSString *alias = [zone getAlias];
NSLog(@"Zone alias: %@", alias);
Definition at line 117 of file NCZone.h.
◆ color
zone's color.
Swift code snippet:
// Get zone color
let color = zone.getColor()
print("Zone color: \(color ?? "nil")")
Objective C code snippet:
NSString *color = [zone getColor];
NSLog(@"Zone color: %@", color);
Definition at line 103 of file NCZone.h.
◆ id
zone's identifier.
Swift code snippet:
// Get zone ID
let zoneId = zone.getId()
print("Zone ID: \(zoneId)")
Objective C code snippet:
int32_t zoneId = [zone getId];
NSLog(@"Zone ID: %d", zoneId);
Definition at line 75 of file NCZone.h.
◆ locationId
zone's location identifier.
Swift code snippet:
// Get zone location ID
let locationId = zone.getLocationId()
print("Zone location ID: \(locationId)")
Objective C code snippet:
int32_t locationId = [zone getLocationId];
NSLog(@"Zone location ID: %d", locationId);
Definition at line 47 of file NCZone.h.
◆ name
zone's name.
Swift code snippet:
// Get zone name
let zoneName = zone.getName()
print("Zone name: \(zoneName ?? "nil")")
Objective C code snippet:
NSString *zoneName = [zone getName];
NSLog(@"Zone name: %@", zoneName);
Definition at line 89 of file NCZone.h.
◆ polygon
zone's list of points composing the polygonal zone Polygon
Swift code snippet:
// Get zone polygon
let polygon = zone.getPolygon()
print("Zone polygon points: \(polygon.count)")
Objective C code snippet:
NSArray<NCPoint *> *polygon = [zone getPolygon];
NSLog(@"Zone polygon points: %lu", (unsigned long)polygon.count);
Definition at line 33 of file NCZone.h.
◆ sublocationId
| - (int32_t) sublocationId |
|
readnonatomicassign |
zone's sublocationId identifier.
Swift code snippet:
// Get zone sublocation ID
let sublocationId = zone.getSublocationId()
print("Zone sublocation ID: \(sublocationId)")
Objective C code snippet:
int32_t sublocationId = [zone getSublocationId];
NSLog(@"Zone sublocation ID: %d", sublocationId);
Definition at line 61 of file NCZone.h.
The documentation for this class was generated from the following file: