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 */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | protected | System.Beacon.pas System.Beacon.hpp |
System.Beacon | TBeaconManager |
Description
La méthode DoBeaconCalcDistance déclenche les événements en relation avec le calcul de la distance jusqu'au beacon.
- La première méthode surchargée déclenche l'événement OnCalcDistance.
- La seconde méthode surchargée déclenche l'événement OnCalculateDistances.