System.Beacon.TBeaconManager.DoBeaconCalcDistance
Delphi
function DoBeaconCalcDistance(const UUID: TGUID; AMajor, AMinor: Word; ATxPower: Integer;
ARssi: Integer; var NewDistance: Double): Boolean; overload;
function DoBeaconCalcDistance(const Abeacon: IBeacon; ATxPower: Integer; ARssi: Integer;
var NewDistance: Double): Boolean; overload;
C++
bool __fastcall DoBeaconCalcDistance(const GUID &UUID, System::Word AMajor, System::Word AMinor, int ATxPower, int ARssi, double &NewDistance)/* overload */;
bool __fastcall DoBeaconCalcDistance(const _di_IBeacon Abeacon, int ATxPower, int ARssi, double &NewDistance)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Beacon.pas System.Beacon.hpp |
System.Beacon | TBeaconManager |
Description
The DoBeaconCalcDistance method raises events in relation to the distance calculation to a beacon.
- The first overloaded method raises the OnCalcDistance event.
- The second overloaded method raises the OnCalculateDistances event.