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
-
rid
property -
uuid
property -
major
property -
minor
property -
distance
property -
lastSeenTimestamp
property
Other Methods
Properties
distance
Last known distance of the beacon from the mobile device.
@property (nonatomic, assign) double distance
Discussion
Last known distance of the beacon from the mobile device.
Declared In
LimeBeacon.h
lastSeenTimestamp
Timestamp of this beacon, last time beacon was seen
@property (nonatomic, strong) NSDate *lastSeenTimestamp
Discussion
Timestamp of this beacon, last time beacon was seen
Declared In
LimeBeacon.h
major
Major iBeacon identifier, must be a numeric string.
@property (nonatomic, strong) NSString *major
Discussion
Major iBeacon identifier, must be a numeric string.
Declared In
LimeBeacon.h
minor
Minor iBeacon identifier, must be a numeric string.
@property (nonatomic, strong) NSString *minor
Discussion
Minor iBeacon identifier, must be a numeric string.
Declared In
LimeBeacon.h
Instance 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)context
Parameters
- 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.h
identifierLookup
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 *)identifierLookup
Return 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.h
identifierType
Identifier of a region entity type. These are the values used by individual entities: “ibeacon” for iBeacons, “geofence” for geofences.
- (NSString *)identifierType
Return 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.h
initWithDictionary:
Initialize an object with the contents of the dictionary.
- (id)initWithDictionary:(NSDictionary *)dictionary
Parameters
- 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