MRBeacon Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSSecureCoding |
Declared in | MRBeacon.h |
mac
MAC address of the Meridian iBeacon if it is known
@property (nullable, nonatomic, readonly, copy) NSString *mac
Declared In
MRBeacon.h
major
Major number of the Meridian iBeacon
@property (nonatomic, readonly) CLBeaconMajorValue major
Declared In
MRBeacon.h
minor
Minor number of the Meridian iBeacon
@property (nonatomic, readonly) CLBeaconMinorValue minor
Declared In
MRBeacon.h
mapKey
Editor key of the map on which the iBeacon is located (null if unknown or created without a map)
@property (nullable, nonatomic, readonly) MREditorKey *mapKey
Declared In
MRBeacon.h
point
point on the map where the beacon is located (if mapKey is non-null)
@property (nonatomic, readonly) CGPoint point
Declared In
MRBeacon.h
rssi
Latest scanned RSSI of the beacon, 0 if the beacon hasn’t been heard by your device
@property (nonatomic, readonly) NSInteger rssi
Declared In
MRBeacon.h
+ proximityBeaconsForLocationID:completion:
Retrieve all Meridian proximity beacons for the given location
+ (void)proximityBeaconsForLocationID:(NSString *)locationID completion:(void ( ^ ) ( NSArray<MRBeacon*> *beacons , NSError *error ))completion
Parameters
locationID |
Editor ID for the Location |
---|---|
completion |
Completion that will be called after all the MRBeacon objects have been downloaded and initialized |
Declared In
MRBeacon.h
+ proximityBeaconWithMajor:minor:
Create a partially initialized beacon object with the given major/minor pair. Can be used to create MRTriggerManagerSubscription objects
+ (MRBeacon *)proximityBeaconWithMajor:(CLBeaconMajorValue)major minor:(CLBeaconMinorValue)minor
Parameters
major |
Major number of the Meridian iBeacon |
---|---|
minor |
Minor number of the Meridian iBeacon |
Declared In
MRBeacon.h
+ proximityBeaconWithMACAddress:
Create a partially initialized beacon object with the given MAC address. Can be used to create MRTriggerManagerSubscription objects Note: MAC address will be converted to uppercase and all non-alphanumeric characters will be stripped
+ (nullable MRBeacon *)proximityBeaconWithMACAddress:(NSString *)mac
Parameters
mac |
MAC address of the Meridian iBeacon |
---|
Declared In
MRBeacon.h