Loading...
Searching...
No Matches

Class is used for storing WiFi. More...

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

Inherits NSObject.

Properties

NCPointpoint
 wifi's X and Y coordinates in meters as Point (within the sublocation).
 
int32_t locationId
 wifi's location identifier.
 
int32_t sublocationId
 wifi's sublocation identifier.
 
NSString * name
 wifi's name.
 
NSString * mac
 wifi's mac.
 
NCTransmitterStatus status
 wifi's status. TransmitterStatus
 
BOOL valid
 

Detailed Description

Class is used for storing WiFi.

Referenced from Sublocation.

Definition at line 21 of file NCWifi.h.

Property Documentation

◆ locationId

- (int32_t) locationId
readnonatomicassign

wifi's location identifier.

Swift code snippet:

// Get WiFi location ID
let locationId = wifi.getLocationId()
print("WiFi location ID: \‍(locationId)")

Objective C code snippet:

// Get WiFi location ID
int32_t locationId = [wifi getLocationId];
NSLog(@"WiFi location ID: %d", locationId);

Definition at line 51 of file NCWifi.h.

◆ mac

- (NSString*) mac
readnonatomicassign

wifi's mac.

Swift code snippet:

// Get WiFi MAC address
let mac = wifi.getMac()
print("WiFi MAC: \‍(mac ?? "nil")")

Objective C code snippet:

// Get WiFi MAC address
NSString *mac = [wifi getMac];
NSLog(@"WiFi MAC: %@", mac);

Definition at line 96 of file NCWifi.h.

◆ name

- (NSString*) name
readnonatomicassign

wifi's name.

Swift code snippet:

// Get WiFi name
let wifiName = wifi.getName()
print("WiFi name: \‍(wifiName ?? "nil")")

Objective C code snippet:

// Get WiFi name
NSString *wifiName = [wifi getName];
NSLog(@"WiFi name: %@", wifiName);

Definition at line 81 of file NCWifi.h.

◆ point

- (NCPoint*) point
readnonatomicassign

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:

// Get WiFi point
NCPoint *point = [wifi getPoint];
if (point != nil) {
[self demonstratePointUsage:point];
}

Definition at line 36 of file NCWifi.h.

◆ status

- (NCTransmitterStatus) status
readnonatomicassign

wifi's status. TransmitterStatus

Swift code snippet:

// Get WiFi status
let status = wifi.getStatus()
print("WiFi status: \‍(status)")

Objective C code snippet:

// Get WiFi status
NCTransmitterStatus status = [wifi getStatus];
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:

// Get WiFi sublocation ID
int32_t sublocationId = [wifi getSublocationId];
NSLog(@"WiFi sublocation ID: %d", sublocationId);

Definition at line 66 of file NCWifi.h.

◆ 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 119 of file NCWifi.h.


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