@transistorsoft/capacitor-background-geolocation 7.0.5 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/TransistorsoftCapacitorBackgroundGeolocation.podspec +4 -4
  2. package/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml +1 -1
  3. package/android/libs/com/transistorsoft/tslocationmanager-v21/maven-metadata.xml +1 -1
  4. package/package.json +4 -3
  5. package/ios/Resources/PrivacyInfo.xcprivacy +0 -35
  6. package/ios/TSLocationManager.xcframework/Info.plist +0 -61
  7. package/ios/TSLocationManager.xcframework/_CodeSignature/CodeDirectory +0 -0
  8. package/ios/TSLocationManager.xcframework/_CodeSignature/CodeRequirements +0 -0
  9. package/ios/TSLocationManager.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  10. package/ios/TSLocationManager.xcframework/_CodeSignature/CodeResources +0 -2033
  11. package/ios/TSLocationManager.xcframework/_CodeSignature/CodeSignature +0 -0
  12. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
  13. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
  14. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
  15. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
  16. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/LocationManager.h +0 -55
  17. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/LogQuery.h +0 -13
  18. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
  19. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
  20. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
  21. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
  22. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
  23. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSCallback.h +0 -18
  24. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConfig.h +0 -310
  25. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
  26. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
  27. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
  28. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
  29. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
  30. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
  31. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
  32. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
  33. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
  34. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
  35. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
  36. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocation.h +0 -105
  37. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
  38. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
  39. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
  40. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSReachability.h +0 -106
  41. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
  42. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
  43. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
  44. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
  45. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Info.plist +0 -0
  46. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Miniball/Miniball.hpp +0 -525
  47. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/Modules/module.modulemap +0 -6
  48. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/PrivacyInfo.xcprivacy +0 -36
  49. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/TSLocationManager +0 -0
  50. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  51. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
  52. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  53. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeResources +0 -642
  54. package/ios/TSLocationManager.xcframework/ios-arm64/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
  55. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
  56. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
  57. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
  58. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
  59. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LocationManager.h +0 -55
  60. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/LogQuery.h +0 -13
  61. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
  62. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
  63. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
  64. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
  65. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
  66. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCallback.h +0 -18
  67. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConfig.h +0 -310
  68. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
  69. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
  70. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
  71. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
  72. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
  73. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
  74. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
  75. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
  76. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
  77. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
  78. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
  79. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocation.h +0 -105
  80. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
  81. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
  82. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
  83. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSReachability.h +0 -106
  84. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
  85. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
  86. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
  87. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
  88. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Modules/module.modulemap +0 -6
  89. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Info.plist +0 -50
  90. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/Miniball/Miniball.hpp +0 -525
  91. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/Resources/PrivacyInfo.xcprivacy +0 -36
  92. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/TSLocationManager +0 -0
  93. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  94. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
  95. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  96. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeResources +0 -536
  97. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-maccatalyst/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
  98. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/AtomicBoolean.h +0 -18
  99. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/ConfigModule.h +0 -21
  100. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/HttpRequest.h +0 -21
  101. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/HttpResponse.h +0 -29
  102. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/LocationManager.h +0 -55
  103. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/LogQuery.h +0 -13
  104. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/SOMotionDetector.h +0 -141
  105. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/SQLQuery.h +0 -34
  106. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSActivityChangeEvent.h +0 -16
  107. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorization.h +0 -38
  108. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSAuthorizationEvent.h +0 -18
  109. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSCallback.h +0 -18
  110. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConfig.h +0 -310
  111. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSConnectivityChangeEvent.h +0 -17
  112. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSCurrentPositionRequest.h +0 -43
  113. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSDeviceInfo.h +0 -24
  114. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSEnabledChangeEvent.h +0 -15
  115. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofence.h +0 -54
  116. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceEvent.h +0 -64
  117. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofenceManager.h +0 -54
  118. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSGeofencesChangeEvent.h +0 -17
  119. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHeartbeatEvent.h +0 -18
  120. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpEvent.h +0 -19
  121. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSHttpService.h +0 -58
  122. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocation.h +0 -105
  123. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSLocationManager.h +0 -315
  124. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSPowerSaveChangeEvent.h +0 -14
  125. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSProviderChangeEvent.h +0 -20
  126. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSReachability.h +0 -106
  127. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSSchedule.h +0 -40
  128. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSScheduleEvent.h +0 -18
  129. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TSWatchPositionRequest.h +0 -41
  130. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Headers/TransistorAuthorizationToken.h +0 -31
  131. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Info.plist +0 -0
  132. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Miniball/Miniball.hpp +0 -525
  133. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/Modules/module.modulemap +0 -6
  134. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/PrivacyInfo.xcprivacy +0 -36
  135. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/TSLocationManager +0 -0
  136. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeDirectory +0 -0
  137. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements +0 -0
  138. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeRequirements-1 +0 -0
  139. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeResources +0 -642
  140. package/ios/TSLocationManager.xcframework/ios-arm64_x86_64-simulator/TSLocationManager.framework/_CodeSignature/CodeSignature +0 -0
@@ -1,54 +0,0 @@
1
- //
2
- // TSGeofence.h
3
- // TSLocationManager
4
- //
5
- // Created by Christopher Scott on 2016-12-21.
6
- // Copyright © 2016 Transistor Software. All rights reserved.
7
- //
8
- #import <Foundation/Foundation.h>
9
-
10
- @interface TSGeofence : NSObject
11
- {
12
-
13
- }
14
- @property (nonatomic) NSString* identifier;
15
- @property (nonatomic) CLLocationDistance radius;
16
-
17
- @property (nonatomic) CLLocationDegrees latitude;
18
- @property (nonatomic) CLLocationDegrees longitude;
19
- @property (nonatomic) BOOL notifyOnEntry;
20
- @property (nonatomic) BOOL notifyOnExit;
21
- @property (nonatomic) BOOL notifyOnDwell;
22
- @property (nonatomic) double loiteringDelay;
23
- @property (nonatomic) NSDictionary* extras;
24
- @property (nonatomic) NSArray* vertices;
25
- /**
26
- * Arbitrary extra data attached to the geofence
27
- */
28
-
29
- -(instancetype) initWithIdentifier:(NSString*)identifier
30
- radius:(CLLocationDistance)radius
31
- latitude:(CLLocationDegrees)latitude
32
- longitude:(CLLocationDegrees)lontitude
33
- notifyOnEntry:(BOOL)notifyOnEntry
34
- notifyOnExit:(BOOL)notifyOnExit
35
- notifyOnDwell:(BOOL)notifyOnDwell
36
- loiteringDelay:(double)loiteringDelay;
37
-
38
- -(instancetype) initWithIdentifier:(NSString*)identifier
39
- radius:(CLLocationDistance)radius
40
- latitude:(CLLocationDegrees)latitude
41
- longitude:(CLLocationDegrees)longitude
42
- notifyOnEntry:(BOOL)notifyOnEntry
43
- notifyOnExit:(BOOL)notifyOnExit
44
- notifyOnDwell:(BOOL)notifyOnDwell
45
- loiteringDelay:(double)loiteringDelay
46
- extras:(NSDictionary*)extras
47
- vertices:(NSArray*)vertices;
48
-
49
- - (NSDictionary*) toDictionary;
50
- - (BOOL) isPolygon;
51
-
52
-
53
- @end
54
-
@@ -1,64 +0,0 @@
1
- //
2
- // TSGeofenceEvent.h
3
- // TSLocationManager
4
- //
5
- // Created by Christopher Scott on 2017-03-27.
6
- // Copyright © 2017 Transistor Software. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import "TSLocation.h"
11
- #import "TSGeofence.h"
12
-
13
- /**
14
- The event object provided to `-[TSLocationManager onGeofence:]`
15
-
16
- ```obj-c
17
- TSLocationManager *bgGeo = [TSLocationManager sharedInstance];
18
- [bgGeo onGeofence:^(TSGeofenceEvent *event) {
19
- NSLog(@"[onGeofence]: %@", event);
20
- }];
21
- ```
22
-
23
- */
24
- @interface TSGeofenceEvent : NSObject
25
- {
26
-
27
- }
28
-
29
- /// The location associated with this geofence event.
30
- @property (nonatomic, readonly) TSLocation* location;
31
- /// The triggered geofence
32
- @property (nonatomic, readonly) TSGeofence* geofence;
33
- /// The region instance.
34
- @property (nonatomic, readonly) CLCircularRegion* region;
35
-
36
- @property (nonatomic) NSDate *timestamp;
37
-
38
- /// The geofence transition (eg: "ENTER", "EXIT", "DWELL"
39
- @property (nonatomic, readonly) NSString* action;
40
- /// :nodoc:
41
- @property (nonatomic, readonly) BOOL isLoitering;
42
-
43
- /// :nodoc:
44
- @property (nonatomic, readonly) BOOL isFinishedLoitering;
45
-
46
- /// :nodoc:
47
- -(instancetype)initWithGeofence:(TSGeofence*)geofence region:(CLCircularRegion*)circularRegion action:(NSString*)actionName;
48
- -(instancetype)initWithGeofence:(TSGeofence*)geofence action:(NSString*)actionName;
49
-
50
- /// :nodoc:
51
- -(void) startLoiteringAt:(CLLocation*)location callback:(void (^)(void))callback;
52
- /// :nodoc:
53
- -(BOOL) isLoiteringAt:(CLLocation*)location;
54
- /// :nodoc:
55
- -(void) setTriggerLocation:(CLLocation*)location;
56
- /// :nodoc:
57
- -(void) cancel;
58
-
59
- /// Returns an `NSDictionary` representaton.
60
- -(NSDictionary*)toDictionary;
61
-
62
-
63
- @end
64
-
@@ -1,54 +0,0 @@
1
- //
2
- // GeofenceManager.h
3
- // TSLocationManager
4
- //
5
- // Created by Christopher Scott on 2016-10-04.
6
- // Copyright © 2016 Transistor Software. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import <CoreLocation/CoreLocation.h>
11
- #import "TSGeofenceEvent.h"
12
- #import "TSGeofencesChangeEvent.h"
13
-
14
- extern NSString *const STATIONARY_REGION_IDENTIFIER;
15
-
16
- @interface TSGeofenceManager : NSObject<CLLocationManagerDelegate>
17
- {
18
-
19
- }
20
-
21
- @property (copy) void (^onGeofence) (TSGeofenceEvent* event);
22
-
23
- @property (atomic) BOOL isMoving;
24
- @property (atomic) BOOL enabled;
25
- @property (atomic) BOOL evaluated;
26
- @property (atomic) BOOL isUpdatingLocation;
27
- @property (atomic) BOOL isEvaluatingEvents;
28
- @property (atomic) BOOL isRequestingLocation;
29
- @property (atomic) BOOL isMonitoringSignificantChanges;
30
- @property (atomic) BOOL willEvaluateProximity;
31
- @property (atomic) CLLocation *lastLocation;
32
-
33
- @property (atomic, readonly) NSMutableArray *geofencesChangeListeners;
34
- @property (atomic, readonly) NSMutableArray *geofenceListeners;
35
-
36
-
37
- // Event listeners
38
- -(void) onGeofencesChange:(void (^)(TSGeofencesChangeEvent*))success;
39
- -(void) onGeofence:(void (^)(TSGeofenceEvent*))success;
40
- -(void) un:(NSString*)event callback:(void(^)(id))callback;
41
- -(void) removeListeners;
42
- -(void) start;
43
- -(void) stop;
44
- -(void) ready;
45
- -(void) setLocation:(CLLocation*)location isMoving:(BOOL)isMoving;
46
- -(void) setProximityRadius:(CLLocationDistance)radius;
47
- -(BOOL) isMonitoringRegion:(CLCircularRegion*)region;
48
- -(void) didBecomeStationary:(CLLocation*)locaiton;
49
- -(NSString*) identifierFor:(CLCircularRegion*)region;
50
- -(void) create:(NSArray*)geofences success:(void (^)(void))success failure:(void (^)(NSString*))failure;
51
- -(void) destroy:(NSArray*)identifiers success:(void (^)(void))success failure:(void (^)(NSString*))failure;
52
- -(BOOL) isInfiniteMonitoring;
53
-
54
- @end
@@ -1,17 +0,0 @@
1
- //
2
- // TSGeofencesChangeEvent.h
3
- // TSLocationManager
4
- //
5
- // Created by Christopher Scott on 2017-07-29.
6
- // Copyright © 2017 Transistor Software. All rights reserved.
7
- //
8
- #import "TSSchedule.h"
9
-
10
- @interface TSGeofencesChangeEvent : NSObject
11
-
12
- @property (nonatomic, readonly) NSArray* on;
13
- @property (nonatomic, readonly) NSArray* off;
14
-
15
- -(id) initWithOn:(NSArray*)on off:(NSArray*)off;
16
- -(NSDictionary*) toDictionary;
17
- @end
@@ -1,18 +0,0 @@
1
- //
2
- // TSHeartbeat.h
3
- // TSLocationManager
4
- //
5
- // Created by Christopher Scott on 2017-07-28.
6
- // Copyright © 2017 Transistor Software. All rights reserved.
7
- //
8
-
9
- #import "TSLocation.h"
10
-
11
- @interface TSHeartbeatEvent : NSObject
12
-
13
- @property (nonatomic, readonly) TSLocation* location;
14
-
15
- -(id) initWithLocation:(CLLocation*)location;
16
- -(NSDictionary*) toDictionary;
17
- @end
18
-
@@ -1,19 +0,0 @@
1
- //
2
- // TSHttpResponse.h
3
- // TSLocationManager
4
- //
5
- // Created by Christopher Scott on 2017-07-28.
6
- // Copyright © 2017 Transistor Software. All rights reserved.
7
- //
8
-
9
- @interface TSHttpEvent : NSObject
10
-
11
- @property (nonatomic, readonly) BOOL isSuccess;
12
- @property (nonatomic, readonly) NSInteger statusCode;
13
- @property (nonatomic, readonly) NSDictionary *requestData;
14
- @property (nonatomic, readonly) NSString *responseText;
15
- @property (nonatomic, readonly) NSError *error;
16
-
17
- -(id) initWithStatusCode:(NSInteger)statusCode requestData:(NSDictionary*)requestData responseData:(NSData*)responseData error:(NSError*)error;
18
- -(NSDictionary*) toDictionary;
19
- @end
@@ -1,58 +0,0 @@
1
- //
2
- // TSScheduler.h
3
- // TSLocationManager
4
- //
5
- // Created by Christopher Scott on 2016-04-26.
6
- // Copyright © 2016 Transistor Software. All rights reserved.
7
- //
8
- //
9
- // TSScheduler
10
- // TODO This should be decoupled into some sort of plugin
11
- //
12
- #import <Foundation/Foundation.h>
13
- #import <UIKit/UIKit.h>
14
- #import "TSConnectivityChangeEvent.h"
15
- #import "TSAuthorizationEvent.h"
16
- #import "AtomicBoolean.h"
17
- #import "HttpRequest.h"
18
- #import "TSReachability.h"
19
- #import "TSCallback.h"
20
-
21
- @class TSHttpService;
22
-
23
- @interface TSHttpService : NSObject
24
-
25
- #pragma mark - Singleton
26
- + (TSHttpService *)sharedInstance;
27
-
28
- #pragma mark - Properties
29
-
30
- @property (copy) void (^httpResponseBlock) (HttpRequest *request, HttpResponse *response);
31
-
32
- @property (nonatomic) AtomicBoolean *isBusy;
33
- @property (nonatomic) BOOL hasNetworkConnection;
34
-
35
- @property (nonatomic, readonly) NSMutableArray *syncedRecords;
36
- @property (nonatomic, readonly) TSReachability *reachability;
37
- @property (nonatomic, readonly) UIBackgroundTaskIdentifier bgTask;
38
-
39
- @property (nonatomic, readonly) NSMutableSet *connectivityChangeListeners;
40
- @property (nonatomic, readonly) NSMutableSet *authorizationListeners;
41
-
42
- @property (nonatomic) TSCallback *callback;
43
- @property (nonatomic) long autoSyncThreshold;
44
-
45
- #pragma mark - Methods
46
- -(void)flush;
47
- -(void)flush:(BOOL)overrideSyncThreshold;
48
- -(void)flush:(void(^)(NSArray*))success failure:(void(^)(NSError*))failure;
49
- -(void)startMonitoring;
50
- -(void)stopMonitoring;
51
-
52
- -(void)onConnectivityChange:(void (^)(TSConnectivityChangeEvent*))success;
53
- -(void)onAuthorization:(void(^)(TSAuthorizationEvent*))callback;
54
- -(void)un:(NSString*)event callback:(void(^)(id))callback;
55
- -(void)removeListeners;
56
- -(void)removeListeners:(NSString*)event;
57
-
58
- @end
@@ -1,105 +0,0 @@
1
- //
2
- // TSLocation.h
3
- // TSLocationManager
4
- //
5
- // Created by Christopher Scott on 2017-02-11.
6
- // Copyright © 2017 Transistor Software. All rights reserved.
7
- //
8
-
9
- @interface TSLocation : NSObject
10
-
11
- // Location types
12
- typedef enum tsLocationType : NSInteger {
13
- TS_LOCATION_TYPE_MOTIONCHANGE = 0,
14
- TS_LOCATION_TYPE_TRACKING = 1,
15
- TS_LOCATION_TYPE_CURRENT = 2,
16
- TS_LOCATION_TYPE_SAMPLE = 3,
17
- TS_LOCATION_TYPE_WATCH = 4,
18
- TS_LOCATION_TYPE_GEOFENCE = 5,
19
- TS_LOCATION_TYPE_HEARTBEAT = 6
20
- } tsLocationtype;
21
-
22
- /**
23
- * The native CLLocation instance
24
- */
25
- @property (nonatomic, readonly) CLLocation* location;
26
- /**
27
- * Universally unique identifier. The uuid is used to locate the record in the database. It is also posted by default in HTTP requests so your server can determine if a duplicate location has been posted. It's also helpful to match a location received at your server to entries in the plugin logs.
28
- */
29
- @property (nonatomic, readonly) NSString *uuid;
30
- /**
31
- * The rendered timestamp in ISO-8851 UTC format (YYYY-MM-dd HH:mm:sssZ)
32
- */
33
- @property (nonatomic, readonly) NSString *timestamp;
34
-
35
- @property (nonatomic, readonly) NSNumber *age;
36
- /**
37
- * The type of location: MOTIONCHANGE|TRACKING|CURRENT|SAMPLE|WATCH|GEOFENCE|HEARTBEAT
38
- */
39
- @property (nonatomic, readonly) enum tsLocationType type;
40
- /**
41
- * YES when location was recorded while device is in motion; NO otherwise.
42
- */
43
- @property (nonatomic, readonly) BOOL isMoving;
44
- /**
45
- * Arbitrary extras data attached to the location.
46
- */
47
- @property (nonatomic, readonly) NSDictionary* extras;
48
- /**
49
- * For internal use only. Geofence data rendered to NSDictionary for posting to server.
50
- */
51
- @property (nonatomic, readonly) NSDictionary* geofence;
52
- // Battery
53
- /**
54
- * YES when device is plugged into power and charging
55
- */
56
- @property (nonatomic, readonly) BOOL batteryIsCharging;
57
- /**
58
- * The battery level between 0 (empty) and 1 (full)
59
- */
60
- @property (nonatomic, readonly) NSNumber *batteryLevel;
61
- // Activity
62
- /**
63
- * Activity type rendered as string: still|on_foot|in_vehicle|running|on_bicycle
64
- */
65
- @property (nonatomic, readonly) NSString *activityType;
66
- /**
67
- * Confidence of activity-type estimation as % 0-100
68
- */
69
- @property (nonatomic, readonly) NSNumber *activityConfidence;
70
- // State
71
- /**
72
- * YES when recorded location is a sample. The plugin records multiple locations for particular events, such as "motionchange" in order to determine
73
- * highest accuracy location before persisting that location to the database and POSTing to your configured #url. Location "samples" are not persisted
74
- * to the plugin's database, nor are they posted to your configured #url
75
- */
76
- @property (nonatomic, readonly) BOOL isSample;
77
-
78
- @property (nonatomic, readonly) BOOL mock;
79
- /**
80
- * YES when this location was provided to a heartbeat event
81
- */
82
- @property (nonatomic, readonly) BOOL isHeartbeat;
83
- /**
84
- * The current value of the odometer in meters
85
- */
86
- @property (nonatomic, readonly) NSNumber *odometer;
87
- /**
88
- * The event associated with this location: location|motionchange|heartbeat|providerchange
89
- */
90
- @property (nonatomic, readonly) NSString *event;
91
-
92
- -(instancetype) initWithLocation:(CLLocation*)location;
93
- -(instancetype) initWithLocation:(CLLocation*)location type:(enum tsLocationType)type extras:(NSDictionary*)extras;
94
- -(instancetype) initWithLocation:(CLLocation*)location geofence:(NSDictionary*)geofenceData;
95
-
96
- /**
97
- * Render location-data as JSON string
98
- */
99
- - (NSData*)toJson:(NSError**)error;
100
- /**
101
- * Render location-data as NSDictionary
102
- */
103
- - (NSDictionary*)toDictionary;
104
-
105
- @end