Skip to content

BeaconRegion

A beacon region to monitor, as listed in BeaconRangingPeriodicSamplingConfiguration.beaconRegions.

Annotations

Constructors

BeaconRegion.fromJson

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

BeaconRegion

BeaconRegion({
  1. required String identifier,
  2. required String uuid,
  3. int? major,
  4. int? minor,
})

Properties

identifier

String identifier
getter/setter pair

A unique identifier for the beacon region. Used to distinguish between different regions being monitored.

major

int? major
getter/setter pair

The major value of the beacon region (optional). Used to further distinguish a subset of beacons within the same UUID.

minor

int? minor
getter/setter pair

The minor value of the beacon region (optional). Provides a finer granularity within a group of beacons identified by the same UUID and major value.

uuid

String uuid
getter/setter pair

The proximity UUID of the beacon. This is a 128-bit value used to identify a group of related beacons.

Methods

toJson

Map<String, dynamic> toJson()

toRegion

Region toRegion()

Converts this region to a Region used by the beacon plugin.

toString

String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.