-
Notifications
You must be signed in to change notification settings - Fork 397
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
Showing
12 changed files
with
92 additions
and
87 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
This file was deleted.
Oops, something went wrong.
Binary file modified
BIN
+2.39 MB
(110%)
EstimoteSDKv5/EstimoteSDKv5.framework/Versions/A/EstimoteSDKv5
Binary file not shown.
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
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 |
---|---|---|
|
@@ -16,6 +16,32 @@ | |
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
FOUNDATION_EXPORT NSString * const ESTProximityObserverErrorDomain; | ||
|
||
/** | ||
Possible errors invoked with Proximity Observer's error block. | ||
*/ | ||
typedef NS_ENUM(NSUInteger, ESTProximityObserverError) { | ||
/* Unknown error probably due to a bug. If you're getting errors with this code please report it on | ||
* https://forums.estimote.com, using [email protected] or filing an issue on Github. */ | ||
ESTProximityObserverErrorUnknown = 0, | ||
|
||
/* Fetching attachments from Cloud failed. */ | ||
ESTProximityObserverErrorFetchingAttachmentsFailed, | ||
|
||
/* Observed zone doesn't match any attachments fetched from Cloud. */ | ||
ESTProximityObserverErrorNoAttachmentsMatchingZone, | ||
|
||
/* Bluetooth is unsupported on this iOS device. */ | ||
ESTProximityObserverErrorBluetoothUnsupported, | ||
|
||
/* Bluetooth is turned off. */ | ||
ESTProximityObserverErrorBluetoothOff, | ||
|
||
/* Couldn't use motion detection. */ | ||
ESTProximityObserverErrorMotionDetectionFailed, | ||
}; | ||
|
||
/** | ||
Observes and reports proximity of Estimote devices. | ||
Uses Estimote Monitoring under the hood. Encapsulates it under tag-based beacon identification and callback blocks. | ||
|
@@ -33,10 +59,10 @@ NS_ASSUME_NONNULL_BEGIN | |
+ (instancetype)new NS_UNAVAILABLE; | ||
|
||
/** | ||
Designated initializer. | ||
@param credentials Cloud Credentials object. You can use `+[ESTCloudCredentials sharedInstance]` to get it. | ||
@param errorBlock Cloud Credentials object. You can use `+[ESTCloudCredentials sharedInstance]` to get it. | ||
Default initializer. | ||
@param credentials Cloud Credentials object used to authorize requests sent to Estimote Cloud. | ||
@param errorBlock Block invoked whenever error occurs. The parameter is an NSError object, with | ||
domain equal to ESTProximityObserverErrorDomain and code from ESTProximityObserverError enum. | ||
*/ | ||
- (instancetype)initWithCredentials:(ESTCloudCredentials *)credentials | ||
errorBlock:(void (^)(NSError *error))errorBlock; | ||
|
@@ -47,10 +73,20 @@ NS_ASSUME_NONNULL_BEGIN | |
- start Estimote Monitoring at registered ranges, | ||
- call registered enter/exit/change blocks when proximity event occurs. | ||
Subsequent calls of this method cause overwriting previously observed zones. | ||
@param zones Zones to be observed | ||
*/ | ||
- (void)startObservingZones:(NSArray<ESTProximityZone *> *)zones; | ||
|
||
/** | ||
Stop observing and calling callbacks for all zones that were provided with -startObservingZones:, | ||
release memory resources allocated for monitoring the zones. | ||
Subsequent calls of this method (without re-starting observing zones) have the same effect as calling it just once. | ||
*/ | ||
- (void)stopObservingZones; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.