Skip to content

BeaconDevice

A beacon found by ranging, as listed in BeaconData.

Annotations

Constructors

BeaconDevice.fromJson

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

BeaconDevice.fromRegionAndBeacon

BeaconDevice.fromRegionAndBeacon(
  1. Beacon beacon
)

Creates a BeaconDevice from a ranged Beacon.

BeaconDevice

BeaconDevice({
  1. required int rssi,
  2. required String uuid,
  3. int? major,
  4. int? minor,
  5. double? accuracy,
  6. Proximity? proximity,
})

Properties

accuracy

double? accuracy
getter/setter pair

The estimated distance to the beacon, in meters.

major

int? major
getter/setter pair

Major value (for iBeacon).

minor

int? minor
getter/setter pair

Minor value (for iBeacon).

proximity

Proximity? proximity
final

The proximity zone of the beacon (e.g., immediate, near, far).

rssi

int rssi
getter/setter pair

The RSSI signal strength to the device, in dBm.

uuid

String uuid
getter/setter pair

The proximity UUID of the beacon.

Methods

toJson

Map<String, dynamic> toJson()

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.