Skip to content

Commit

Permalink
[sdk-release] 1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
René Fischer committed May 12, 2016
1 parent 1cba310 commit a373a90
Show file tree
Hide file tree
Showing 12 changed files with 803 additions and 0 deletions.
1 change: 1 addition & 0 deletions StroeerProxity.framework/Headers
1 change: 1 addition & 0 deletions StroeerProxity.framework/Resources
1 change: 1 addition & 0 deletions StroeerProxity.framework/StroeerProxity
10 changes: 10 additions & 0 deletions StroeerProxity.framework/Versions/A/Headers/SPXActionActivity.h
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
};
55 changes: 55 additions & 0 deletions StroeerProxity.framework/Versions/A/Headers/SPXBeacon.h
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
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 StroeerProxity.framework/Versions/A/Headers/SPXDeviceAction.h
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
98 changes: 98 additions & 0 deletions StroeerProxity.framework/Versions/A/Headers/SPXLocation.h
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
Loading

0 comments on commit a373a90

Please sign in to comment.