SWRLSignal Class Reference
Inherits from | SWRLObject : NSObject |
---|---|
Declared in | SWRLSignal.h SWRLSignal.m |
Overview
SWRLSignal is an abstract base class for any presence signal object. Concrete subclasses are Beacon, WifiInfo and Region. A signal is tied to a logical placement and location.
Accessing Attributes
urn
Protocol specific identifier derived from detection attributes lat/long; beacon advertisement or wifi mac-address
@property (nonatomic, readonly) NSString *urn
Declared In
SWRLSignal.h
range
This is the approximate range to the beacon. This is a rough approximation.
@property (nonatomic, readonly) double range
Declared In
SWRLSignal.h
lastDetected
Timestamp of last detection of this signal.
@property (nonatomic, readonly) NSTimeInterval lastDetected
Declared In
SWRLSignal.h
error
Error (set if there is a problem with this signal)
@property (nonatomic, readonly) NSError *error
Declared In
SWRLSignal.h
location
A logical Location and Placement associated to this georegion through the platform.
@property (nonatomic, readonly) SWRLLocation *location
Declared In
SWRLSignal.h
Accessing Custom Labels and Attributes
attributes
A set of property value pairs associated to this Location-Placement through the platform.
@property (nonatomic, readonly) NSDictionary *attributes
Declared In
SWRLSignal.h
labels
A set of labels assigned to this Location-Placement through the platform.
@property (nonatomic, readonly) NSArray<NSString*> *labels
Declared In
SWRLSignal.h
attachments
The set of attachments associated with this signal
@property (nonatomic, readonly) NSArray<SWRLAttachment*> *attachments
Declared In
SWRLSignal.h
– attachmentsWithType:
The set of attachments that have a given namespace or type. Specify string/ to match namespace and specify /string to match type.
- (NSArray<SWRLAttachment*> *)attachmentsWithType:(NSString *)type
Declared In
SWRLSignal.h