summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/corelocation/CLBeaconRegion.inc
blob: 7c2f46d6a3f6dd4229bf86e9ac237687d9022789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ Parsed from CoreLocation.framework CLBeaconRegion.h }


{$ifdef TYPES}
type
  CLBeaconRegionPtr = ^CLBeaconRegion;
  CLBeaconPtr = ^CLBeacon;
{$endif}

{$ifdef TYPES}
type
  CLBeaconMajorValue = cuint16;
  CLBeaconMajorValuePtr = ^CLBeaconMajorValue;
  CLBeaconMinorValue = cuint16;
  CLBeaconMinorValuePtr = ^CLBeaconMinorValue;
{$endif}

{$ifdef CLASSES}

type
  CLBeaconRegion = objcclass external (CLRegion)
  public
    function initWithProximityUUID_identifier (proximityUUID: NSUUID; identifier_: NSString): instancetype; message 'initWithProximityUUID:identifier:';
    function initWithProximityUUID_major_identifier (proximityUUID: NSUUID; major: CLBeaconMajorValue; identifier_: NSString): instancetype; message 'initWithProximityUUID:major:identifier:';
    function initWithProximityUUID_major_minor_identifier (proximityUUID: NSUUID; major: CLBeaconMajorValue; minor: CLBeaconMinorValue; identifier_: NSString): instancetype; message 'initWithProximityUUID:major:minor:identifier:';
    function peripheralDataWithMeasuredPower (measuredPower: NSNumber): NSMutableDictionary; message 'peripheralDataWithMeasuredPower:';
    function proximityUUID: NSUUID; message 'proximityUUID';
    function major: NSNumber; message 'major';
    function minor: NSNumber; message 'minor';
    procedure setNotifyEntryStateOnDisplay(newValue: ObjCBOOL); message 'setNotifyEntryStateOnDisplay:';
    function notifyEntryStateOnDisplay: ObjCBOOL; message 'notifyEntryStateOnDisplay';
  end;

type
  CLBeacon = objcclass external (NSObject, NSCopyingProtocol, NSSecureCodingProtocol)
  private
    _internal: CLBeaconInternal;
  public
    function proximityUUID: NSUUID; message 'proximityUUID';
    function major: NSNumber; message 'major';
    function minor: NSNumber; message 'minor';
    function proximity: CLProximity; message 'proximity';
    function accuracy: CLLocationAccuracy; message 'accuracy';
    function rssi: NSInteger; message 'rssi';

    { Adopted protocols }
    function copyWithZone (zone: NSZonePtr): id; message 'copyWithZone:';
    procedure encodeWithCoder (aCoder: NSCoder); message 'encodeWithCoder:';
    function initWithCoder (aDecoder: NSCoder): id; message 'initWithCoder:';
    class function supportsSecureCoding: ObjCBOOL; message 'supportsSecureCoding';
  end;
{$endif}