Class is used for managing measurement generators and notifying about sensor and signal measurements. More...
#include <com/navigine/idl/objc/NCMeasurementManager.h>
Inherits NSObject.
Instance Methods | |
| (void) | - addMeasurementListener: |
| Method is used to add MeasurementListener class element which will notify about new sensor or signal measurements. | |
| (void) | - removeMeasurementListener: |
| Method is used for removing previously added MeasurementListener class element. | |
| (nonnull NSString *) | - addBeaconGenerator:major:minor:power:timeout:rssiMin:rssiMax: |
| Method adds a beacon generator for simulating BLE beacon signals. | |
| (nonnull NSString *) | - addEddystoneGenerator:instanceId:power:timeout:rssiMin:rssiMax: |
| Method adds an Eddystone generator for simulating Eddystone beacon signals. | |
| (void) | - removeBleGenerators |
| Method removes all BLE beacon generators. | |
| (void) | - removeBleGenerator: |
| Method removes a specific BLE beacon generator by its identifier. | |
| (nonnull NSString *) | - addWifiGenerator:timeout:rssiMin:rssiMax: |
| Method adds a Wi-Fi generator for simulating Wi-Fi signals. | |
| (void) | - removeWifiGenerator: |
| Method removes a specific Wi-Fi generator by its identifier. | |
| (void) | - removeWifiGenerators |
| Method removes all Wi-Fi generators. | |
| (nonnull NSString *) | - addWifiRttGenerator:timeout:distMin:distMax:stdDevMin:stdDevMax:rssiMin:rssiMax: |
| Method adds a Wi-Fi RTT generator for simulating Wi-Fi Round-Trip Time signals. | |
| (void) | - removeWifiRttGenerator: |
| Method removes a specific Wi-Fi RTT generator by its identifier. | |
| (void) | - removeWifiRttGenerators |
| Method removes all Wi-Fi RTT generators. | |
| (nonnull NSString *) | - addLocationGenerator:latMax:lonMin:lonMax:accMin:accMax:timeout: |
| Method adds a location generator for simulating location measurements. | |
| (void) | - removeLocationGenerator: |
| Method removes a specific location generator by its identifier. | |
| (void) | - removeLocationGenerators |
| Method removes all location generators. | |
Class is used for managing measurement generators and notifying about sensor and signal measurements.
Referenced from NavigineSdk.
Definition at line 18 of file NCMeasurementManager.h.
| - (nonnull NSString *) addBeaconGenerator: | (nonnull NSString *) | uuid | |
| major: | (int32_t) | major | |
| minor: | (int32_t) | minor | |
| power: | (int32_t) | power | |
| timeout: | (int32_t) | timeout | |
| rssiMin: | (int32_t) | rssiMin | |
| rssiMax: | (int32_t) | rssiMax |
Method adds a beacon generator for simulating BLE beacon signals.
| uuid | UUID of the beacon. |
| major | Major value of the beacon. |
| minor | Minor value of the beacon. |
| power | Transmission power of the beacon (dBm). |
| timeout | Duration of the generator in milliseconds. |
| rssiMin | Minimum RSSI value for the simulated signal. |
| rssiMax | Maximum RSSI value for the simulated signal. |
Swift code snippet:
Objective C code snippet:
| - (nonnull NSString *) addEddystoneGenerator: | (nonnull NSString *) | namespaceId | |
| instanceId: | (nonnull NSString *) | instanceId | |
| power: | (int32_t) | power | |
| timeout: | (int32_t) | timeout | |
| rssiMin: | (int32_t) | rssiMin | |
| rssiMax: | (int32_t) | rssiMax |
Method adds an Eddystone generator for simulating Eddystone beacon signals.
| namespaceId | Namespace ID of the Eddystone beacon. |
| instanceId | Instance ID of the Eddystone beacon. |
| power | Transmission power of the beacon (dBm). |
| timeout | Duration of the generator in milliseconds. |
| rssiMin | Minimum RSSI value for the simulated signal. |
| rssiMax | Maximum RSSI value for the simulated signal. |
Swift code snippet:
Objective C code snippet:
| - (nonnull NSString *) addLocationGenerator: | (double) | latMin | |
| latMax: | (double) | latMax | |
| lonMin: | (double) | lonMin | |
| lonMax: | (double) | lonMax | |
| accMin: | (float) | accMin | |
| accMax: | (float) | accMax | |
| timeout: | (int32_t) | timeout |
Method adds a location generator for simulating location measurements.
| latMin | Minimum latitude for the simulated location. |
| latMax | Maximum latitude for the simulated location. |
| lonMin | Minimum longitude for the simulated location. |
| lonMax | Maximum longitude for the simulated location. |
| accMin | Minimum accuracy for the simulated location (in meters). |
| accMax | Maximum accuracy for the simulated location (in meters). |
| timeout | Duration of the generator in milliseconds. |
Swift code snippet:
Objective C code snippet:
| - (void) addMeasurementListener: | (nullable id< NCMeasurementListener >) | listener |
Method is used to add MeasurementListener class element which will notify about new sensor or signal measurements.
| listener | Corresponding MeasurementListener class. |
Swift code snippet:
Objective C code snippet:
| - (nonnull NSString *) addWifiGenerator: | (nonnull NSString *) | mac | |
| timeout: | (int32_t) | timeout | |
| rssiMin: | (int32_t) | rssiMin | |
| rssiMax: | (int32_t) | rssiMax |
Method adds a Wi-Fi generator for simulating Wi-Fi signals.
| mac | MAC address of the Wi-Fi access point. |
| timeout | Duration of the generator in milliseconds. |
| rssiMin | Minimum RSSI value for the simulated signal. |
| rssiMax | Maximum RSSI value for the simulated signal. |
Swift code snippet:
Objective C code snippet:
| - (nonnull NSString *) addWifiRttGenerator: | (nonnull NSString *) | mac | |
| timeout: | (int32_t) | timeout | |
| distMin: | (int32_t) | distMin | |
| distMax: | (int32_t) | distMax | |
| stdDevMin: | (int32_t) | stdDevMin | |
| stdDevMax: | (int32_t) | stdDevMax | |
| rssiMin: | (int32_t) | rssiMin | |
| rssiMax: | (int32_t) | rssiMax |
Method adds a Wi-Fi RTT generator for simulating Wi-Fi Round-Trip Time signals.
| mac | MAC address of the Wi-Fi access point. |
| timeout | Duration of the generator in milliseconds. |
| distMin | Minimum distance for the simulated signal (in meters). |
| distMax | Maximum distance for the simulated signal (in meters). |
| stdDevMin | Minimum standard deviation for the simulated signal. |
| stdDevMax | Maximum standard deviation for the simulated signal. |
| rssiMin | Minimum RSSI value for the simulated signal. |
| rssiMax | Maximum RSSI value for the simulated signal. |
Swift code snippet:
Objective C code snippet:
| - (void) removeBleGenerator: | (nonnull NSString *) | id |
Method removes a specific BLE beacon generator by its identifier.
| id | Unique identifier of the BLE generator to remove. |
Swift code snippet:
Objective C code snippet:
| - (void) removeBleGenerators |
Method removes all BLE beacon generators.
Swift code snippet:
Objective C code snippet:
| - (void) removeLocationGenerator: | (nonnull NSString *) | id |
Method removes a specific location generator by its identifier.
| id | Unique identifier of the location generator to remove. |
Swift code snippet:
Objective C code snippet:
| - (void) removeLocationGenerators |
Method removes all location generators.
Swift code snippet:
Objective C code snippet:
| - (void) removeMeasurementListener: | (nullable id< NCMeasurementListener >) | listener |
Method is used for removing previously added MeasurementListener class element.
| listener | Corresponding MeasurementListener class to remove. |
Swift code snippet:
Objective C code snippet:
| - (void) removeWifiGenerator: | (nonnull NSString *) | id |
Method removes a specific Wi-Fi generator by its identifier.
| id | Unique identifier of the Wi-Fi generator to remove. |
Swift code snippet:
Objective C code snippet:
| - (void) removeWifiGenerators |
Method removes all Wi-Fi generators.
Swift code snippet:
Objective C code snippet:
| - (void) removeWifiRttGenerator: | (nonnull NSString *) | hash |
Method removes a specific Wi-Fi RTT generator by its identifier.
| hash | Unique identifier of the Wi-Fi RTT generator to remove. |
Swift code snippet:
Objective C code snippet:
| - (void) removeWifiRttGenerators |
Method removes all Wi-Fi RTT generators.
Swift code snippet:
Objective C code snippet: