forked from StroeerSE/StroeerBeaconSDK_iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
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
René Fischer
committed
May 12, 2016
1 parent
1cba310
commit a373a90
Showing
12 changed files
with
803 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Headers |
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 @@ | ||
Versions/Current/Resources |
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 @@ | ||
Versions/Current/StroeerProxity |
10 changes: 10 additions & 0 deletions
10
StroeerProxity.framework/Versions/A/Headers/SPXActionActivity.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,10 @@ | ||
// | ||
// SPXActionActivity.h | ||
// | ||
// Copyright (c) 2015 match2blue GmbH. All rights reserved. | ||
// | ||
|
||
typedef NS_ENUM(int, SPXActionActivity) { | ||
SPXActionActivityLeaving = 0, | ||
SPXActionActivityEntering | ||
}; |
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,55 @@ | ||
// | ||
// SPXBeacon.h | ||
// | ||
// Copyright (c) 2015 match2blue GmbH. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
|
||
/** | ||
* Class that represents a beacon. | ||
*/ | ||
@interface SPXBeacon : NSObject <NSCoding, NSCopying> | ||
|
||
/** | ||
* The name / identifier of the beacon. | ||
*/ | ||
@property (nonatomic, readonly, nonnull) NSString* name; | ||
|
||
/** | ||
* The UUID of the beacon. | ||
*/ | ||
@property (nonatomic, readonly, nonnull) NSString* uuid; | ||
|
||
/** | ||
* The major value of the beacon. | ||
*/ | ||
@property (nonatomic, readonly) NSInteger major; | ||
|
||
/** | ||
* The minor value of the beacon. | ||
*/ | ||
@property (nonatomic, readonly) NSInteger minor; | ||
|
||
|
||
|
||
/** | ||
* The latitiude of the beacon. | ||
*/ | ||
@property (nonatomic, readonly) double latitude; | ||
|
||
/** | ||
* The longitude of the beacon. | ||
*/ | ||
@property (nonatomic, readonly) double longitude; | ||
|
||
|
||
/** | ||
* Helper method which returns the current content of the instance as dictionary. | ||
* | ||
* @return Returns a dictionary whose keys matches the property names. | ||
*/ | ||
- (nonnull NSDictionary*)toDictionary; | ||
|
||
@end |
26 changes: 26 additions & 0 deletions
26
StroeerProxity.framework/Versions/A/Headers/SPXCustomAnalyticsType.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,26 @@ | ||
// | ||
// SPXCustomAnalyticsType.h | ||
// | ||
// Copyright © 2015 match2blue. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
/** | ||
* This class represents a custom analytics type created in the dashboard. | ||
* Use instances of this class to send custom analytics events to the database. | ||
*/ | ||
@interface SPXCustomAnalyticsType : NSObject | ||
|
||
/** | ||
* Name of the custom analytics type. | ||
*/ | ||
@property (nonatomic, readonly) NSString *name; | ||
|
||
/** | ||
* Type-ID of the custom analytics type. | ||
*/ | ||
@property (nonatomic, readonly) NSString *type; | ||
|
||
|
||
@end |
65 changes: 65 additions & 0 deletions
65
StroeerProxity.framework/Versions/A/Headers/SPXDeviceAction.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,65 @@ | ||
// | ||
// SPXDeviceAction.h | ||
// | ||
// Copyright (c) 2015 match2blue GmbH. All rights reserved. | ||
// | ||
|
||
@class SPXBeacon; | ||
|
||
#import "SPXActionActivity.h" | ||
|
||
typedef NS_ENUM(int, SPXActionProximityTrigger) { | ||
SPXActionProximityTriggerImmediate = 0, | ||
SPXActionProximityTriggerNear, | ||
SPXActionProximityTriggerFar | ||
}; | ||
|
||
/** | ||
* This class represents an action that should show a local push notificaiton. | ||
*/ | ||
@interface SPXDeviceAction : NSObject<NSCopying, NSCoding> | ||
|
||
/** | ||
* The name of the action. | ||
*/ | ||
@property (nonatomic, readonly) NSString *name; | ||
|
||
/** | ||
* The plain description of the action. | ||
*/ | ||
@property (nonatomic, readonly) NSString *plainDescription; | ||
|
||
/** | ||
* The data of the action. | ||
*/ | ||
@property (nonatomic, readonly) NSDictionary *data; | ||
|
||
/** | ||
* The type of the action. | ||
*/ | ||
@property (nonatomic, readonly) NSString *type; | ||
|
||
/** | ||
* The activity of the action. | ||
*/ | ||
@property (nonatomic, readonly) SPXActionActivity actionActivity; | ||
|
||
/** | ||
* The linked bluloc that triggered this action. | ||
*/ | ||
@property (nonatomic, readonly) SPXBeacon *bluloc; | ||
|
||
/** | ||
* The proximity trigger for this action set in the dashboard. | ||
* Can be either immediate, near or far. | ||
*/ | ||
@property (nonatomic, readonly) SPXActionProximityTrigger proximityTrigger; | ||
|
||
/** | ||
* Helper method which returns the current content of the instance as dictionary. | ||
* | ||
* @return Returns a dictionary whose keys matches the property names. | ||
*/ | ||
- (NSDictionary*)toDictionary; | ||
|
||
@end |
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,98 @@ | ||
// | ||
// SPXLocation.h | ||
// | ||
// Copyright © 2015 match2blue. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <CoreLocation/CoreLocation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
static CLLocationAccuracy const SPXUnknownLocationAccuracy = -1; | ||
|
||
/** | ||
* This class represents a outdoor location. | ||
*/ | ||
@interface SPXLocation : NSObject <NSCopying, NSCoding> | ||
|
||
/** | ||
* The Latitude of the location. | ||
*/ | ||
@property (nonatomic) CLLocationDegrees latitude; | ||
|
||
/** | ||
* The longitude of the location. | ||
*/ | ||
@property (nonatomic) CLLocationDegrees longitude; | ||
|
||
/** | ||
* The current estimated accuracy of the position in metres. | ||
* Can be used to draw an accuracy circle around the user position on the map. | ||
*/ | ||
@property (nonatomic) CLLocationAccuracy accuracy; | ||
|
||
/** | ||
* The timestamp when the location was calculated. | ||
*/ | ||
@property (nonatomic) NSDate *timestamp; | ||
|
||
/** | ||
* Method to create a new outdoor location. | ||
* | ||
* @param coordinate Coordinate of the location | ||
* | ||
* @return A new @p SPXLocation object initialzed with the given values and a accuracy of @p SPXUnknownLocationAccuracy. | ||
*/ | ||
+ (SPXLocation*)locationWithCoordinate:(CLLocationCoordinate2D)coordinate; | ||
|
||
/** | ||
* Method to create a new outdoor location. | ||
* | ||
* @param lat Latitude of the location | ||
* @param lng Longitude of the location | ||
* | ||
* @return A new @p SPXLocation object initialzed with the given values and a accuracy of @p SPXUnknownLocationAccuracy. | ||
*/ | ||
+ (SPXLocation*)locationWithLatitude:(CLLocationDegrees)lat longitude:(CLLocationDegrees)lng; | ||
|
||
/** | ||
* Method to create a new outdoor location. | ||
* | ||
* @param lat Latitude of the location | ||
* @param lng Longitude of the location | ||
* @param accuracy The estimated accuracy of the location. | ||
* | ||
* @return A new @p SPXLocation object initialzed with the given values. | ||
*/ | ||
+ (SPXLocation*)locationWithLatitude:(CLLocationDegrees)lat longitude:(CLLocationDegrees)lng accuracy:(CLLocationAccuracy)accuracy; | ||
|
||
/** | ||
* Helper method to get the CLLocationCoordinate2D representation of latitude and longitude of the location. | ||
* | ||
* @return The coordinates of the location. | ||
*/ | ||
- (CLLocationCoordinate2D)coordinate; | ||
|
||
/** | ||
* Calculates the distance between two locations. | ||
* | ||
* @param location another location | ||
* | ||
* @return Returns the distance between two locations. | ||
*/ | ||
- (CLLocationDistance)distanceFromLocation:(SPXLocation*)location; | ||
|
||
/** | ||
* Calculates the distance between a SPXLocation and a CLLocation instance. | ||
* The floor won't be taken into account. | ||
* | ||
* @param location A CLLocation instance. | ||
* | ||
* @return Returns the distance between two locations. | ||
*/ | ||
- (CLLocationDistance)distanceFromCLLocation:(CLLocation*)location; | ||
|
||
NS_ASSUME_NONNULL_END | ||
|
||
@end |
Oops, something went wrong.