System.Beacon.TBeaconManager.RegisterBeacon

From RAD Studio API Documentation
Jump to: navigation, search

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 and AMinor beacons using the AGUID.
  • The second method registers all the AMinor beacons related to the specified AGUID and AMajor.
  • The third method only registers the beacon specified with AGUID, AMajor, and AMinor.

Note:

See Also