Loading...
Searching...
No Matches

Class is used for storing iBeacon. More...

Inherits Finalizable.

Public Attributes

Point get point
 beacon's X and Y coordinates in meters as Point (within the sublocation).
 
int get locationId
 beacon's location identifier.
 
int get sublocationId
 beacon's sublocation identifier.
 
String get name
 beacon's name.
 
int get major
 beacon's major. Values [1-65535]
 
int get minor
 beacon's minor. Values [1-65535]
 
String get uuid
 beacon's uuid. Format [XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX]
 
int get power
 beacon's power.
 
TransmitterStatus get status
 iBeacon status. TransmitterStatus
 

Detailed Description

Class is used for storing iBeacon.

Referenced from Sublocation.

Definition at line 22 of file beacon.dart.

Member Data Documentation

◆ locationId

int get Beacon.locationId

beacon's location identifier.

Dart code snippet:

// Get beacon location ID
int locationId = beacon.getLocationId();
print('Beacon location ID: $locationId');

Definition at line 44 of file beacon.dart.

◆ major

int get Beacon.major

beacon's major. Values [1-65535]

Dart code snippet:

// Get beacon major
int major = beacon.getMajor();
print('Beacon major: $major');

Definition at line 74 of file beacon.dart.

◆ minor

int get Beacon.minor

beacon's minor. Values [1-65535]

Dart code snippet:

// Get beacon minor
int minor = beacon.getMinor();
print('Beacon minor: $minor');

Definition at line 84 of file beacon.dart.

◆ name

String get Beacon.name

beacon's name.

Dart code snippet:

// Get beacon name
String? beaconName = beacon.getName();
print('Beacon name: $beaconName');

Definition at line 64 of file beacon.dart.

◆ point

Point get Beacon.point

beacon's X and Y coordinates in meters as Point (within the sublocation).

Dart code snippet:

// Get beacon point
Point? point = beacon.getPoint();
if (point != null) {
demonstratePointUsage(point);
}

Definition at line 34 of file beacon.dart.

◆ power

int get Beacon.power

beacon's power.

Dart code snippet:

// Get beacon power
int? power = beacon.getPower();
if (power != null) {
print('Beacon power: $power');
}

Definition at line 104 of file beacon.dart.

◆ status

TransmitterStatus get Beacon.status

iBeacon status. TransmitterStatus

Dart code snippet:

// Get beacon status
TransmitterStatus status = beacon.getStatus();
print('Beacon status: $status');

Definition at line 114 of file beacon.dart.

◆ sublocationId

int get Beacon.sublocationId

beacon's sublocation identifier.

Dart code snippet:

// Get beacon sublocation ID
int sublocationId = beacon.getSublocationId();
print('Beacon sublocation ID: $sublocationId');

Definition at line 54 of file beacon.dart.

◆ uuid

String get Beacon.uuid

beacon's uuid. Format [XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX]

Dart code snippet:

// Get beacon UUID
String? uuid = beacon.getUuid();
print('Beacon UUID: $uuid');

Definition at line 94 of file beacon.dart.


The documentation for this class was generated from the following file: