System.Beacon.TBeaconManager.RegisterBeacon
Delphi
function RegisterBeacon(const AGUID: TGUID; const AKindofBeacon: TKindofBeacon = TKindofBeacon.iBAltBeacons; AManufacturerId: Integer = MANUFATURER_ID_ALL): Boolean; overload;
function RegisterBeacon(const AGUID: TGUID; AMajor: Word; const AKindofBeacon: TKindofBeacon = TKindofBeacon.iBAltBeacons; AManufacturerId: Integer = MANUFATURER_ID_ALL): Boolean; overload;
function RegisterBeacon(const AGUID: TGUID; AMajor, AMinor: Word; const AKindofBeacon: TKindofBeacon = TKindofBeacon.iBAltBeacons; AManufacturerId: Integer = MANUFATURER_ID_ALL): Boolean; overload;
C++
bool __fastcall RegisterBeacon(const GUID &AGUID, const TKindofBeacon AKindofBeacon = (TKindofBeacon)(0x3), int AManufacturerId = 0xffffffff)/* overload */;
bool __fastcall RegisterBeacon(const GUID &AGUID, System::Word AMajor, const TKindofBeacon AKindofBeacon = (TKindofBeacon)(0x3), int AManufacturerId = 0xffffffff)/* overload */;
bool __fastcall RegisterBeacon(const GUID &AGUID, System::Word AMajor, System::Word AMinor, const TKindofBeacon AKindofBeacon = (TKindofBeacon)(0x3), int AManufacturerId = 0xffffffff)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Beacon.pas System.Beacon.hpp |
System.Beacon | TBeaconManager |
Description
The RegisterBeacon method registers beacons within a region for monitoring purposes.
RegisterBeacon registers beacons with formats iBeacon and AltBeacon.
Three different overloaded methods may be used for registering regions according to the beacons we want to monitor:
- The first method registers all the
AMajor
andAMinor
beacons using theAGUID
. - The second method registers all the
AMinor
beacons related to the specifiedAGUID
andAMajor
. - The third method only registers the beacon specified with
AGUID
,AMajor
, andAMinor
.
Note:
- You cannot get events of several region items with the same UUID. For more information about events of different monitored regions, see Getting information from incoming beacons.
- In order to register Eddystone beacons use RegisterBeacons.