LimeBeacon Class Reference
| Inherits from | LimeObject : NSObject | 
| Conforms to | LimeRegionObjectProtocol NSCoding | 
| Declared in | LimeBeacon.h LimeBeacon.m | 
Overview
A class representing an instance of a beacon in slightly more direct way than CLBeacon class. This class is used accross all Lime SDK.
Tasks
Other Methods
- 
	
		ridproperty
- 
	
		uuidproperty
- 
	
		majorproperty
- 
	
		minorproperty
- 
	
		distanceproperty
- 
	
		lastSeenTimestampproperty
Other Methods
Properties
distance
Last known distance of the beacon from the mobile device.
@property (nonatomic, assign) double distanceDiscussion
Last known distance of the beacon from the mobile device.
Declared In
LimeBeacon.hlastSeenTimestamp
Timestamp of this beacon, last time beacon was seen
@property (nonatomic, strong) NSDate *lastSeenTimestampDiscussion
Timestamp of this beacon, last time beacon was seen
Declared In
LimeBeacon.hmajor
Major iBeacon identifier, must be a numeric string.
@property (nonatomic, strong) NSString *majorDiscussion
Major iBeacon identifier, must be a numeric string.
Declared In
LimeBeacon.hminor
Minor iBeacon identifier, must be a numeric string.
@property (nonatomic, strong) NSString *minorDiscussion
Minor iBeacon identifier, must be a numeric string.
Declared In
LimeBeacon.hInstance Methods
distanceUsingContext:
Compute a distance from the region entity using a provided context object, such as an instance of CLBeacon or CLLocation representing the current user location. Distance is always calculated from the center of the region entity to the location provided by context.
- (CLLocationDistance)distanceUsingContext:(id)contextParameters
- context
- A context used for computing the distance from (such as current location or beacon information. 
Return Value
Distance from the region entity using a provided context object.
Discussion
Compute a distance from the region entity using a provided context object, such as an instance of CLBeacon or CLLocation representing the current user location. Distance is always calculated from the center of the region entity to the location provided by context.
Declared In
LimeObject.hidentifierLookup
Identifier used for a unique region entity lookup - for iBeacon, this may be a derivative of uuid, major and minor, for geofence, this must be a geofence rid.
- (NSString *)identifierLookupReturn Value
Identifier used for a unique region entity lookup.
Discussion
Identifier used for a unique region entity lookup - for iBeacon, this may be a derivative of uuid, major and minor, for geofence, this must be a geofence rid.
Declared In
LimeObject.hidentifierType
Identifier of a region entity type. These are the values used by individual entities: “ibeacon” for iBeacons, “geofence” for geofences.
- (NSString *)identifierTypeReturn Value
Identifier of a region entity type.
Discussion
Identifier of a region entity type. These are the values used by individual entities: “ibeacon” for iBeacons, “geofence” for geofences.
Declared In
LimeObject.hinitWithDictionary:
Initialize an object with the contents of the dictionary.
- (id)initWithDictionary:(NSDictionary *)dictionaryParameters
- dictionary
- An NSDictionary to be used for initializing object properties. 
Return Value
This implementation of method alway raises an exception - subclass must override this method.
Discussion
Initialize an object with the contents of the dictionary.
WARNING: The default implementation in LimeObject class raises an exception. Make sure you override the method in your subclasses.
Declared In
LimeObject.h