System.Beacon.TBeaconManager.RegisterBeacon

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function RegisterBeacon(const AGUID: TGUID): Boolean; overload;
function RegisterBeacon(const AGUID: TGUID; AMajor: Word): Boolean; overload;
function RegisterBeacon(const AGUID: TGUID; AMajor, AMinor: Word): Boolean; overload;

C++

bool __fastcall RegisterBeacon(const GUID &AGUID)/* overload */;
bool __fastcall RegisterBeacon(const GUID &AGUID, System::Word AMajor)/* overload */;
bool __fastcall RegisterBeacon(const GUID &AGUID, System::Word AMajor, System::Word AMinor)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Beacon.pas
System.Beacon.hpp
System.Beacon TBeaconManager

Description

The RegisterBeacon method registers a region for monitoring beacons.

Three different overloaded methods may be used for registering regions according to the beacons we want to monitor.

With the first method, all the AMajor and AMinor beacons using the AGUID are registered to be monitored. With the second method, all the AMinor beacons related to the specified AGUID and AMajor are registered to be monitored. With the third method, only the beacon specified with AGUID, AMajor and AMinor is registered to be monitored.

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.

See Also