ConnectivitySamplingPackage class
The sampling package for collecting connectivity, wifi, Bluetooth and beacon data.
Register it before you deploy a protocol that uses its measure types:
SamplingPackageRegistry().register(ConnectivitySamplingPackage());
Key points:
- BLUETOOTH can be configured with a BluetoothScanPeriodicSamplingConfiguration to filter the scan on services or device ids.
- BEACON needs a BeaconRangingPeriodicSamplingConfiguration with at least one BeaconRegion; otherwise the BeaconProbe does not start.
- On registration, adds bluetoothNameAnonymizer and wifiNameAnonymizer
to the default
PrivacySchema.
- Inheritance
-
- Object
- SamplingPackage
- SmartphoneSamplingPackage
- ConnectivitySamplingPackage
Constructors
Properties
-
dataTypes
→ List<
DataTypeMetaData> -
The data types this package supports.
no setterinherited
-
deviceManager
→ DeviceManager<
DeviceConfiguration< DeviceRegistration> , DeviceRegistration> -
Get the
DeviceManagerfor the device used by this package.no setterinherited - deviceType → String
-
The type of device this package collects data from.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- samplingSchemes → DataTypeSamplingSchemeMap
-
The default sampling schemes for all dataTypes in this package.
no setteroverride
Methods
-
create(
String type) → Probe? -
Creates a new
Probeof the specifiedtype. Note thattypeshould be one of the dataTypes that this package supports. Returns null if a probe cannot be created for thetype.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onRegister(
) → void -
Called when this package is registered in the
SamplingPackageRegistry.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- BEACON → const String
- Measure type for Beacon ranging to detect and estimate proximity to Bluetooth beacons (e.g., iBeacon, Eddystone). Collects beacon identifiers (UUID, major, minor), estimated distance and RSSI while the phone is inside a monitored region.
- BLUETOOTH → const String
- Measure type for collection of nearby Bluetooth devices on a regular basis.
- CONNECTIVITY → const String
- Measure type for continuous collection of connectivity status of the phone (none/mobile/wifi).
- WIFI → const String
- Measure type for collection of wifi information (SSID, BSSID, IP).