Class is used for storing WiFi.
More...
#include <com/navigine/idl/objc/NCWifi.h>
Inherits NSObject.
Class is used for storing WiFi.
Referenced from Sublocation.
Definition at line 21 of file NCWifi.h.
◆ locationId
wifi's location identifier.
Swift code snippet:
// Get WiFi location ID
let locationId = wifi.getLocationId()
print("WiFi location ID: \(locationId)")
Objective C code snippet:
int32_t locationId = [wifi getLocationId];
NSLog(@"WiFi location ID: %d", locationId);
Definition at line 49 of file NCWifi.h.
◆ mac
wifi's mac.
Swift code snippet:
// Get WiFi MAC address
let mac = wifi.getMac()
print("WiFi MAC: \(mac ?? "nil")")
Objective C code snippet:
NSString *mac = [wifi getMac];
NSLog(@"WiFi MAC: %@", mac);
Definition at line 91 of file NCWifi.h.
◆ name
wifi's name.
Swift code snippet:
// Get WiFi name
let wifiName = wifi.getName()
print("WiFi name: \(wifiName ?? "nil")")
Objective C code snippet:
NSString *wifiName = [wifi getName];
NSLog(@"WiFi name: %@", wifiName);
Definition at line 77 of file NCWifi.h.
◆ point
wifi's X and Y coordinates in meters as Point (within the sublocation).
Swift code snippet:
// Get WiFi point
let point = wifi.getPoint()
if let point = point {
demonstratePointUsage(point)
}
Objective C code snippet:
NCPoint *point = [wifi getPoint];
if (point != nil) {
[self demonstratePointUsage:point];
}
Definition at line 35 of file NCWifi.h.
◆ status
wifi's status. TransmitterStatus
Swift code snippet:
// Get WiFi status
let status = wifi.getStatus()
print("WiFi status: \(status)")
Objective C code snippet:
NSLog(@"WiFi status: %ld", (long)status);
Definition at line 105 of file NCWifi.h.
◆ sublocationId
| - (int32_t) sublocationId |
|
readnonatomicassign |
wifi's sublocation identifier.
Swift code snippet:
// Get WiFi sublocation ID
let sublocationId = wifi.getSublocationId()
print("WiFi sublocation ID: \(sublocationId)")
Objective C code snippet:
int32_t sublocationId = [wifi getSublocationId];
NSLog(@"WiFi sublocation ID: %d", sublocationId);
Definition at line 63 of file NCWifi.h.
The documentation for this class was generated from the following file: