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 51 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 96 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 81 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 36 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 111 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 66 of file NCWifi.h.
◆ valid
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 119 of file NCWifi.h.
The documentation for this class was generated from the following file: