MRTagProximityManager Class Reference

Inherits from NSObject
Declared in MRTagProximityManager.h

Overview

Provides information about Meridian Asset Tags that are close enough to be detected via bluetooth scan

  locationID

The location ID to use for Tag scanning

@property (nonatomic, readonly) NSString *locationID

Declared In

MRTagProximityManager.h

  delegate

The delegate to receive event callbacks.

@property (nullable, nonatomic, weak) id<MRTagProximityManagerDelegate> delegate

Declared In

MRTagProximityManager.h

  queue

The queue on which the delegate will receive callbacks, if nil the main queue will be used

@property (nullable, nonatomic, readonly) dispatch_queue_t queue

Declared In

MRTagProximityManager.h

  isScanning

Indicates if this TagProximityManaager is currently scanning for tags

@property (nonatomic, readonly) BOOL isScanning

Declared In

MRTagProximityManager.h

– startScanningWithRSSIThreshold:macAddress:

Call when you wish to begin receiving MRTagProximityManagerDelegate callbacks

- (void)startScanningWithRSSIThreshold:(nullable NSNumber *)rssiThreshold macAddress:(nullable NSString *)macAddress

Parameters

rssiThreshold

optional RSSI threshold between 0 and -100. If nil all Tags will be returned, else all Tags with RSSI greater than or equal to the threshold

macAddress

optional mac address filter. If nil all Tags will be returned, else information will only be returned for a tag with the matching mac address (Note: the mac address matching is case and punctuation insensitive. ie “12:34:56:ab:cd:ef” will match “123456ABCDEF”)

Declared In

MRTagProximityManager.h

– stopScanning

Call when you wish to stop receiving MRTagProximityManagerDelegate callbacks

- (void)stopScanning

Declared In

MRTagProximityManager.h

– initWithLocationID:delegate:queue:

Initializer that sets location ID, delegate, and queue

- (instancetype)initWithLocationID:(nonnull NSString *)locationID delegate:(nullable id<MRTagProximityManagerDelegate>)delegate queue:(dispatch_queue_t)queue

Parameters

locationID

Editor ID of the location that this Tag Proximity Manager instance will be responsible for

delegate

delegate that will receive tag updates from this manager

queue

The dispatch queue used to dispatch the MRTagProximityManagerDelegate events. If the value is nil, they will be dispatched on the main queue.

Declared In

MRTagProximityManager.h

+ tagProximityManagerForLocationID:delegate:queue:

Convenience initializer that sets location ID, delegate, and queue

+ (instancetype)tagProximityManagerForLocationID:(nonnull NSString *)locationID delegate:(nullable id<MRTagProximityManagerDelegate>)delegate queue:(nullable dispatch_queue_t)queue

Parameters

locationID

Editor ID of the location that this Tag Proximity Manager instance will be responsible for

delegate

delegate that will receive tag updates from this manager

queue

The dispatch queue used to dispatch the MRTagProximityManagerDelegate events. If the value is nil, they will be dispatched on the main queue.

Declared In

MRTagProximityManager.h