-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e59ee24
commit 543960a
Showing
5 changed files
with
147 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'RadarSDK' | ||
s.version = '1.0.9' | ||
s.version = '1.0.10' | ||
s.summary = 'iOS toolkit for location tracking and geofencing' | ||
s.homepage = 'https://www.onradar.com' | ||
s.author = { 'Radar Labs, Inc.' => '[email protected]' } | ||
s.platform = :ios | ||
s.source = { :git => 'https://github.com/RadarLabs/RadarSDK-iOS.git', :tag => '1.0.9' } | ||
s.source = { :git => 'https://github.com/RadarLabs/RadarSDK-iOS.git', :tag => '1.0.10' } | ||
s.source_files = 'RadarSDK/RadarSDK.framework/Versions/A/Headers/*.h' | ||
s.vendored_frameworks = 'RadarSDK/RadarSDK.framework' | ||
s.ios.deployment_target = '8.0' | ||
|
20 changes: 20 additions & 0 deletions
20
RadarSDK/RadarSDK.framework/Versions/A/Headers/RadarDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// RadarDelegate.h | ||
// RadarSDK | ||
// | ||
// Created by Nicholas Patrick on 10/3/16. | ||
// Copyright © 2016 Radar. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "RadarEvent.h" | ||
|
||
@protocol RadarDelegate <NSObject> | ||
|
||
/** | ||
@abstract Tells the delegate that events were received. Note that events can also be delivered server-side via webhooks. | ||
@param events The events received. | ||
*/ | ||
- (void)didReceiveEvents:(NSArray<RadarEvent *> *)events; | ||
|
||
@end |
62 changes: 62 additions & 0 deletions
62
RadarSDK/RadarSDK.framework/Versions/A/Headers/RadarEvent.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// | ||
// RadarEvent.h | ||
// RadarSDK | ||
// | ||
// Copyright © 2016 Radar. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <CoreLocation/CoreLocation.h> | ||
#import "RadarUser.h" | ||
#import "RadarGeofence.h" | ||
|
||
@interface RadarEvent : NSObject | ||
|
||
typedef NS_ENUM(NSInteger, RadarEventType) { | ||
UserEnteredGeofence = 1, | ||
UserExitedGeofence | ||
}; | ||
|
||
- (instancetype _Nullable)initWithId:(NSString * _Nonnull)_id createdAt:(NSDate * _Nonnull)createdAt live:(BOOL)live type:(RadarEventType)type user:(RadarUser * _Nonnull)user geofence:(RadarGeofence * _Nonnull)geofence location:(CLLocation * _Nonnull)location duration:(float)duration; | ||
|
||
/** | ||
* @abstract The unique ID for the event provided by Radar. | ||
*/ | ||
@property (nonnull, copy, nonatomic, readonly) NSString *_id; | ||
|
||
/** | ||
* @abstract The datetime when the event was created. | ||
*/ | ||
@property (nonnull, copy, nonatomic, readonly) NSDate *createdAt; | ||
|
||
/** | ||
* @abstract A boolean indicating whether the event was generated for a user created with your live API key. | ||
*/ | ||
@property (assign, nonatomic, readonly) BOOL live; | ||
|
||
/** | ||
* @abstract The type of event. | ||
*/ | ||
@property (assign, nonatomic, readonly) RadarEventType type; | ||
|
||
/** | ||
* @abstract The user for which the event was generated. | ||
*/ | ||
@property (nonnull, strong, nonatomic, readonly) RadarUser *user; | ||
|
||
/** | ||
* @abstract The geofence for which the event was generated. | ||
*/ | ||
@property (nonnull, strong, nonatomic, readonly) RadarGeofence *geofence; | ||
|
||
/** | ||
* @abstract The location of the user at the time of the event. | ||
*/ | ||
@property (nonnull, copy, nonatomic, readonly) CLLocation *location; | ||
|
||
/** | ||
* @abstract The duration between entry and exit events, in minutes, for exit events. 0 for entry events. | ||
*/ | ||
@property (assign, nonatomic, readonly) float duration; | ||
|
||
@end |
34 changes: 34 additions & 0 deletions
34
RadarSDK/RadarSDK.framework/Versions/A/Headers/RadarGeofence.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// RadarGeofence.h | ||
// RadarSDK | ||
// | ||
// Copyright © 2016 Radar. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface RadarGeofence : NSObject | ||
|
||
- (instancetype _Nullable)initWithId:(NSString * _Nonnull)_id description:(NSString * _Nonnull)description tag:(NSString * _Nullable)tag externalId:(NSString * _Nullable)externalId; | ||
|
||
/** | ||
* @abstract The unique ID for the geofence provided by Radar. | ||
*/ | ||
@property (nonnull, copy, nonatomic, readonly) NSString *_id; | ||
|
||
/** | ||
* @abstract A description for the geofence. Not to be confused with the NSObject description property. | ||
*/ | ||
@property (nonnull, copy, nonatomic, readonly) NSString *_description; | ||
|
||
/** | ||
* @abstract An optional group for the geofence. | ||
*/ | ||
@property (nullable, copy, nonatomic, readonly) NSString *tag; | ||
|
||
/** | ||
* @abstract An optional external ID for the geofence. | ||
*/ | ||
@property (nullable, copy, nonatomic, readonly) NSString *externalId; | ||
|
||
@end |
29 changes: 29 additions & 0 deletions
29
RadarSDK/RadarSDK.framework/Versions/A/Headers/RadarUser.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// RadarUser.h | ||
// RadarSDK | ||
// | ||
// Copyright © 2016 Radar. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface RadarUser : NSObject | ||
|
||
- (instancetype _Nullable)initWithId:(NSString * _Nonnull)_id userId:(NSString * _Nonnull)userId description:(NSString * _Nullable)description; | ||
|
||
/** | ||
* @abstract The unique ID for the user provided by Radar. | ||
*/ | ||
@property (nonnull, copy, nonatomic, readonly) NSString *_id; | ||
|
||
/** | ||
* @abstract The external unique ID for the user in your database, provided when you started tracking the user. | ||
*/ | ||
@property (nonnull, copy, nonatomic, readonly) NSString *userId; | ||
|
||
/** | ||
* @abstract An optional description for the user, provided when you started tracking the user. Not to be confused with the NSObject description property. | ||
*/ | ||
@property (nullable, copy, nonatomic, readonly) NSString *_description; | ||
|
||
@end |