Skip to content

BeaconRangingPeriodicSamplingConfiguration

A sampling configuration specifying how to scan for iBeacon devices.

Used with the ConnectivitySamplingPackage.BEACON measure. The regions of the beacons to monitor are specified in the beaconRegions list. Only beacons within beaconDistance meters (default 2) are reported.

Inheritance
Annotations

Constructors

BeaconRangingPeriodicSamplingConfiguration.fromJson

BeaconRangingPeriodicSamplingConfiguration.fromJson(
  1. Map<String, dynamic> json
)

BeaconRangingPeriodicSamplingConfiguration

BeaconRangingPeriodicSamplingConfiguration({
  1. List<BeaconRegion> beaconRegions = const [],
  2. int beaconDistance = 2,
})

Properties

beaconDistance

int beaconDistance
getter/setter pair

The distance in meters to consider a beacon as "in range". Default is 2.

beaconRegions

List<BeaconRegion> beaconRegions
getter/setter pair

List of beacon regions to monitor and range.

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.