react-native-radar 3.30.0-beta.2 → 3.30.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 (126) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/newarch/java/com/radar/RadarModule.kt +1 -1
  3. package/android/src/oldarch/java/com/radar/RadarModule.java +1 -1
  4. package/dist/version.d.ts +1 -1
  5. package/dist/version.js +1 -1
  6. package/ios/RNRadar.mm +1 -1
  7. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar-Swift.h +7 -0
  8. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar.h +1380 -0
  9. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarAddress.h +172 -0
  10. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarBeacon.h +75 -0
  11. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarChain.h +44 -0
  12. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarCircleGeometry.h +27 -0
  13. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarContext.h +65 -0
  14. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarCoordinate.h +23 -0
  15. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarDelegate.h +67 -0
  16. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarEvent.h +209 -0
  17. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarFraud.h +73 -0
  18. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarGeofence.h +57 -0
  19. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarGeofenceGeometry.h +15 -0
  20. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInAppMessage.h +18 -0
  21. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInAppMessageDelegate.h +53 -0
  22. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarIndoorsProtocol.h +23 -0
  23. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInitializeOptions.h +22 -0
  24. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarMotionProtocol.h +28 -0
  25. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarOperatingHours.h +15 -0
  26. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarPlace.h +85 -0
  27. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarPolygonGeometry.h +31 -0
  28. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRegion.h +82 -0
  29. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRoute.h +42 -0
  30. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteDistance.h +31 -0
  31. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteDuration.h +31 -0
  32. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteGeometry.h +28 -0
  33. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteMatrix.h +34 -0
  34. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteMode.h +32 -0
  35. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRoutes.h +54 -0
  36. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK-Swift.h +364 -0
  37. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK.h +45 -0
  38. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSdkConfiguration.h +56 -0
  39. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSegment.h +32 -0
  40. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTimeZone.h +52 -0
  41. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTrackingOptions.h +204 -0
  42. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTrip.h +97 -0
  43. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTripOptions.h +75 -0
  44. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTripOrder.h +91 -0
  45. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarUser.h +164 -0
  46. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarVerifiedDelegate.h +31 -0
  47. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarVerifiedLocationToken.h +66 -0
  48. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Info.plist +0 -0
  49. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.abi.json +3608 -0
  50. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +82 -0
  51. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  52. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.swiftinterface +82 -0
  53. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/module.modulemap +11 -0
  54. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/PrivacyInfo.xcprivacy +106 -0
  55. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/RadarSDK +0 -0
  56. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/Radar-Swift.h +7 -0
  57. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/Radar.h +1380 -0
  58. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarAddress.h +172 -0
  59. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarBeacon.h +75 -0
  60. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarChain.h +44 -0
  61. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarCircleGeometry.h +27 -0
  62. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarContext.h +65 -0
  63. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarCoordinate.h +23 -0
  64. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarDelegate.h +67 -0
  65. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarEvent.h +209 -0
  66. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarFraud.h +73 -0
  67. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarGeofence.h +57 -0
  68. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarGeofenceGeometry.h +15 -0
  69. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInAppMessage.h +18 -0
  70. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInAppMessageDelegate.h +53 -0
  71. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarIndoorsProtocol.h +23 -0
  72. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInitializeOptions.h +22 -0
  73. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarMotionProtocol.h +28 -0
  74. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarOperatingHours.h +15 -0
  75. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarPlace.h +85 -0
  76. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarPolygonGeometry.h +31 -0
  77. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRegion.h +82 -0
  78. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRoute.h +42 -0
  79. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteDistance.h +31 -0
  80. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteDuration.h +31 -0
  81. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteGeometry.h +28 -0
  82. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteMatrix.h +34 -0
  83. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteMode.h +32 -0
  84. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRoutes.h +54 -0
  85. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK-Swift.h +724 -0
  86. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK.h +45 -0
  87. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSdkConfiguration.h +56 -0
  88. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSegment.h +32 -0
  89. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTimeZone.h +52 -0
  90. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrackingOptions.h +204 -0
  91. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrip.h +97 -0
  92. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTripOptions.h +75 -0
  93. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTripOrder.h +91 -0
  94. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarUser.h +164 -0
  95. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarVerifiedDelegate.h +31 -0
  96. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarVerifiedLocationToken.h +66 -0
  97. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Info.plist +0 -0
  98. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +3608 -0
  99. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +82 -0
  100. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  101. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +82 -0
  102. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +3608 -0
  103. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +82 -0
  104. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  105. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +82 -0
  106. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/module.modulemap +11 -0
  107. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/PrivacyInfo.xcprivacy +106 -0
  108. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/RadarSDK +0 -0
  109. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeDirectory +0 -0
  110. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeRequirements +0 -0
  111. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeResources +685 -0
  112. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeSignature +0 -0
  113. package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Headers/RadarSDKMotion.h +38 -0
  114. package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Info.plist +0 -0
  115. package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Modules/module.modulemap +6 -0
  116. package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/RadarSDKMotion +0 -0
  117. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Headers/RadarSDKMotion.h +38 -0
  118. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Info.plist +0 -0
  119. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Modules/module.modulemap +6 -0
  120. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/RadarSDKMotion +0 -0
  121. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeDirectory +0 -0
  122. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeRequirements +0 -0
  123. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeResources +124 -0
  124. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeSignature +0 -0
  125. package/package.json +1 -1
  126. package/src/version.ts +1 -1
@@ -0,0 +1,204 @@
1
+ //
2
+ // RadarTrackingOptions.h
3
+ // RadarSDK
4
+ //
5
+ // Copyright © 2019 Radar Labs, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <CoreLocation/CoreLocation.h>
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ /**
14
+ The location accuracy options.
15
+ */
16
+ typedef NS_ENUM(NSInteger, RadarTrackingOptionsDesiredAccuracy) {
17
+ /// Uses `kCLLocationAccuracyBest`
18
+ RadarTrackingOptionsDesiredAccuracyHigh,
19
+ /// Uses `kCLLocationAccuracyHundredMeters`, the default
20
+ RadarTrackingOptionsDesiredAccuracyMedium,
21
+ /// Uses `kCLLocationAccuracyKilometer`
22
+ RadarTrackingOptionsDesiredAccuracyLow
23
+ };
24
+
25
+ /**
26
+ The replay options for failed location updates.
27
+ */
28
+ typedef NS_ENUM(NSInteger, RadarTrackingOptionsReplay) {
29
+ /// Replays failed stops
30
+ RadarTrackingOptionsReplayStops,
31
+ /// Replays no failed location updates
32
+ RadarTrackingOptionsReplayNone,
33
+ /// Replays all failed location updates
34
+ RadarTrackingOptionsReplayAll
35
+ };
36
+
37
+ /**
38
+ The sync options for location updates.
39
+ */
40
+ typedef NS_ENUM(NSInteger, RadarTrackingOptionsSyncLocations) {
41
+ /// Syncs all location updates to the server
42
+ RadarTrackingOptionsSyncAll,
43
+ /// Syncs only stops and exits to the server
44
+ RadarTrackingOptionsSyncStopsAndExits,
45
+ /// Syncs no location updates to the server
46
+ RadarTrackingOptionsSyncNone
47
+ };
48
+
49
+ /**
50
+ An options class used to configure background tracking.
51
+ @see https://radar.com/documentation/sdk/ios
52
+ */
53
+ @interface RadarTrackingOptions : NSObject
54
+
55
+ /**
56
+ Determines the desired location update interval in seconds when stopped. Use 0 to shut down when stopped.
57
+ @warning Note that location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or wi-fi disabled.
58
+ */
59
+ @property (nonatomic, assign) int desiredStoppedUpdateInterval;
60
+
61
+ /**
62
+ Determines the desired location update interval in seconds when moving.
63
+ @warning Note that location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or wi-fi disabled.
64
+ */
65
+ @property (nonatomic, assign) int desiredMovingUpdateInterval;
66
+
67
+ /**
68
+ Determines the desired sync interval in seconds.
69
+ */
70
+ @property (nonatomic, assign) int desiredSyncInterval;
71
+
72
+ /**
73
+ Determines the desired accuracy of location updates.
74
+ */
75
+ @property (nonatomic, assign) RadarTrackingOptionsDesiredAccuracy desiredAccuracy;
76
+
77
+ /**
78
+ With `stopDistance`, determines the duration in seconds after which the device is considered stopped.
79
+ */
80
+ @property (nonatomic, assign) int stopDuration;
81
+
82
+ /**
83
+ With `stopDuration`, determines the distance in meters within which the device is considered stopped.
84
+ */
85
+ @property (nonatomic, assign) int stopDistance;
86
+
87
+ /**
88
+ Determines when to start tracking. Use `nil` to start tracking when `startTracking` is called.
89
+ */
90
+ @property (nullable, nonatomic, copy) NSDate *startTrackingAfter;
91
+
92
+ /**
93
+ Determines when to stop tracking. Use `nil` to track until `stopTracking` is called.
94
+ */
95
+ @property (nullable, nonatomic, copy) NSDate *stopTrackingAfter;
96
+
97
+ /**
98
+ Determines which failed location updates to replay to the server.
99
+ */
100
+ @property (nonatomic, assign) RadarTrackingOptionsReplay replay;
101
+
102
+ /**
103
+ Determines which location updates to sync to the server.
104
+ */
105
+ @property (nonatomic, assign) RadarTrackingOptionsSyncLocations syncLocations;
106
+
107
+ /**
108
+ Determines whether the flashing blue status bar is shown when tracking.
109
+ @see https://developer.apple.com/documentation/corelocation/cllocationmanager/2923541-showsbackgroundlocationindicator
110
+ */
111
+ @property (nonatomic, assign) BOOL showBlueBar;
112
+
113
+ /**
114
+ Determines whether to use the iOS region monitoring service (geofencing) to create a client geofence around the device's current location when stopped.
115
+ @see https://developer.apple.com/documentation/corelocation/monitoring_the_user_s_proximity_to_geographic_regions
116
+ */
117
+ @property (nonatomic, assign) BOOL useStoppedGeofence;
118
+
119
+ /**
120
+ Determines the radius in meters of the client geofence around the device's current location when stopped.
121
+ */
122
+ @property (nonatomic, assign) int stoppedGeofenceRadius;
123
+
124
+ /**
125
+ Determines whether to use the iOS region monitoring service (geofencing) to create a client geofence around the device's current location when moving.
126
+ @see https://developer.apple.com/documentation/corelocation/monitoring_the_user_s_proximity_to_geographic_regions
127
+ */
128
+ @property (nonatomic, assign) BOOL useMovingGeofence;
129
+
130
+ /**
131
+ Determines the radius in meters of the client geofence around the device's current location when moving.
132
+ */
133
+ @property (nonatomic, assign) int movingGeofenceRadius;
134
+
135
+ /**
136
+ Determines whether to sync nearby geofences from the server to the client to improve responsiveness.
137
+ */
138
+ @property (nonatomic, assign) BOOL syncGeofences;
139
+
140
+ /**
141
+ Determines whether to use the iOS visit monitoring service.
142
+ @see https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_visits_location_service
143
+ */
144
+ @property (nonatomic, assign) BOOL useVisits;
145
+
146
+ /**
147
+ Determines whether to use the iOS significant location change service.
148
+ @see https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_significant-change_location_service
149
+ */
150
+ @property (nonatomic, assign) BOOL useSignificantLocationChanges;
151
+
152
+ /**
153
+ Determines whether to monitor beacons.
154
+ */
155
+ @property (nonatomic, assign) BOOL beacons;
156
+
157
+ /**
158
+ Determines whether to use indoor scanning
159
+ */
160
+ @property (nonatomic, assign) BOOL useIndoorScan;
161
+
162
+ /**
163
+ Determines whether to use the iOS motion activity service.
164
+ */
165
+ @property (nonatomic, assign) BOOL useMotion;
166
+
167
+ /**
168
+ Determines whether to use the iOS pressure service.
169
+ */
170
+ @property (nonatomic, assign) BOOL usePressure;
171
+
172
+ /**
173
+ Updates about every 30 seconds while moving or stopped. Moderate battery usage. Shows the flashing blue status bar during tracking.
174
+ @see https://developer.apple.com/documentation/corelocation/cllocationmanager/2923541-showsbackgroundlocationindicator
175
+ */
176
+ @property (class, copy, readonly) RadarTrackingOptions *presetContinuous;
177
+
178
+ /**
179
+ Updates about every 2.5 minutes when moving and shuts down when stopped to save battery. Once stopped, the device will need to move more than 100 meters to wake up and start
180
+ moving again. Low battery usage. Requires the `location` background mode.
181
+ Note that location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or wi-fi disabled.
182
+ */
183
+ @property (class, copy, readonly) RadarTrackingOptions *presetResponsive;
184
+
185
+ /**
186
+ Uses the iOS visit monitoring service to update only on stops and exits. Once stopped, the device will need to move several hundred meters and trigger a visit departure to wake up
187
+ and start moving again. Lowest battery usage.
188
+ Note that location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or wi-fi disabled.
189
+ @see https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_visits_location_service
190
+ */
191
+ @property (class, copy, readonly) RadarTrackingOptions *presetEfficient;
192
+
193
+ + (NSString *)stringForDesiredAccuracy:(RadarTrackingOptionsDesiredAccuracy)desiredAccuracy;
194
+ + (RadarTrackingOptionsDesiredAccuracy)desiredAccuracyForString:(NSString *)str;
195
+ + (NSString *)stringForReplay:(RadarTrackingOptionsReplay)replay;
196
+ + (RadarTrackingOptionsReplay)replayForString:(NSString *)str;
197
+ + (NSString *)stringForSyncLocations:(RadarTrackingOptionsSyncLocations)syncLocations;
198
+ + (RadarTrackingOptionsSyncLocations)syncLocationsForString:(NSString *)str;
199
+ + (RadarTrackingOptions *_Nullable)trackingOptionsFromDictionary:(NSDictionary *_Nonnull)dictionary;
200
+ - (NSDictionary *)dictionaryValue;
201
+
202
+ @end
203
+
204
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,97 @@
1
+ //
2
+ // RadarTrip.h
3
+ // RadarSDK
4
+ //
5
+ // Copyright © 2020 Radar Labs, Inc. All rights reserved.
6
+ //
7
+
8
+ #import "RadarCoordinate.h"
9
+ #import "RadarRouteMode.h"
10
+ #import "RadarTripOrder.h"
11
+ #import <Foundation/Foundation.h>
12
+
13
+ /**
14
+ Represents a trip.
15
+
16
+ @see https://radar.com/documentation/trip-tracking
17
+ */
18
+ @interface RadarTrip : NSObject
19
+
20
+ /**
21
+ The statuses for trips.
22
+ */
23
+ typedef NS_ENUM(NSInteger, RadarTripStatus) {
24
+ /// Unknown
25
+ RadarTripStatusUnknown NS_SWIFT_NAME(unknown),
26
+ /// `started`
27
+ RadarTripStatusStarted NS_SWIFT_NAME(started),
28
+ /// `approaching`
29
+ RadarTripStatusApproaching NS_SWIFT_NAME(approaching),
30
+ /// `arrived`
31
+ RadarTripStatusArrived NS_SWIFT_NAME(arrived),
32
+ /// `expired`
33
+ RadarTripStatusExpired NS_SWIFT_NAME(expired),
34
+ /// `completed`
35
+ RadarTripStatusCompleted NS_SWIFT_NAME(completed),
36
+ /// `canceled`
37
+ RadarTripStatusCanceled NS_SWIFT_NAME(canceled)
38
+ };
39
+
40
+ /**
41
+ The Radar ID of the trip.
42
+ */
43
+ @property (nonnull, copy, nonatomic, readonly) NSString *_id;
44
+
45
+ /**
46
+ The external ID of the trip.
47
+ */
48
+ @property (nullable, copy, nonatomic, readonly) NSString *externalId;
49
+
50
+ /**
51
+ The optional set of custom key-value pairs for the trip.
52
+ */
53
+ @property (nullable, copy, nonatomic, readonly) NSDictionary *metadata;
54
+
55
+ /**
56
+ For trips with a destination, the tag of the destination geofence.
57
+ */
58
+ @property (nullable, copy, nonatomic, readonly) NSString *destinationGeofenceTag;
59
+
60
+ /**
61
+ For trips with a destination, the external ID of the destination geofence.
62
+ */
63
+ @property (nullable, copy, nonatomic, readonly) NSString *destinationGeofenceExternalId;
64
+
65
+ /**
66
+ For trips with a destination, the location of the destination geofence.
67
+ */
68
+ @property (nullable, strong, nonatomic, readonly) RadarCoordinate *destinationLocation;
69
+
70
+ /**
71
+ The travel mode for the trip.
72
+ */
73
+ @property (assign, nonatomic, readonly) RadarRouteMode mode;
74
+
75
+ /**
76
+ For trips with a destination, the distance to the destination geofence in meters based on the travel mode for the trip.
77
+ */
78
+ @property (assign, nonatomic, readonly) float etaDistance;
79
+
80
+ /**
81
+ For trips with a destination, the ETA to the destination geofence in minutes based on the travel mode for the trip.
82
+ */
83
+ @property (assign, nonatomic, readonly) float etaDuration;
84
+
85
+ /**
86
+ The status of the trip.
87
+ */
88
+ @property (assign, nonatomic, readonly) RadarTripStatus status;
89
+
90
+ /**
91
+ The optional array of trip orders associated with this trip.
92
+ */
93
+ @property (nullable, copy, nonatomic, readonly) NSArray<RadarTripOrder *> *orders;
94
+
95
+ - (NSDictionary *_Nonnull)dictionaryValue;
96
+
97
+ @end
@@ -0,0 +1,75 @@
1
+ //
2
+ // RadarTripOptions.h
3
+ // RadarSDK
4
+ //
5
+ // Copyright © 2020 Radar Labs, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ #import "RadarRouteMode.h"
11
+
12
+
13
+ NS_ASSUME_NONNULL_BEGIN
14
+
15
+ /**
16
+ An options class used to configure trip tracking.
17
+
18
+ @see https://radar.com/documentation/sdk/ios
19
+ */
20
+ @interface RadarTripOptions : NSObject
21
+
22
+ - (instancetype)initWithExternalId:(NSString *_Nonnull)externalId
23
+ destinationGeofenceTag:(NSString *_Nullable)destinationGeofenceTag
24
+ destinationGeofenceExternalId:(NSString *_Nullable)destinationGeofenceExternalId;
25
+
26
+ - (instancetype)initWithExternalId:(NSString *_Nonnull)externalId
27
+ destinationGeofenceTag:(NSString *_Nullable)destinationGeofenceTag
28
+ destinationGeofenceExternalId:(NSString *_Nullable)destinationGeofenceExternalId
29
+ scheduledArrivalAt:(NSDate *_Nullable)scheduledArrivalAt;
30
+
31
+ - (instancetype)initWithExternalId:(NSString *_Nonnull)externalId
32
+ destinationGeofenceTag:(NSString *_Nullable)destinationGeofenceTag
33
+ destinationGeofenceExternalId:(NSString *_Nullable)destinationGeofenceExternalId
34
+ scheduledArrivalAt:(NSDate *_Nullable)scheduledArrivalAt
35
+ startTracking:(BOOL)startTracking;
36
+ /**
37
+ A stable unique ID for the trip.
38
+ */
39
+ @property (nonnull, nonatomic, copy) NSString *externalId;
40
+
41
+ /**
42
+ An optional set of custom key-value pairs for the trip.
43
+ */
44
+ @property (nullable, nonatomic, copy) NSDictionary *metadata;
45
+
46
+ /**
47
+ For trips with a destination, the tag of the destination geofence.
48
+ */
49
+ @property (nullable, nonatomic, copy) NSString *destinationGeofenceTag;
50
+
51
+ /**
52
+ For trips with a destination, the external ID of the destination geofence.
53
+ */
54
+ @property (nullable, nonatomic, copy) NSString *destinationGeofenceExternalId;
55
+
56
+ /**
57
+ * The scheduled arrival time for the trip.
58
+ */
59
+ @property (nullable, nonatomic, copy) NSDate *scheduledArrivalAt;
60
+
61
+ /**
62
+ For trips with a destination, the travel mode.
63
+ */
64
+ @property (nonatomic, assign) RadarRouteMode mode;
65
+
66
+ @property (nonatomic, assign) UInt16 approachingThreshold;
67
+
68
+ @property (nonatomic, assign) BOOL startTracking;
69
+
70
+ + (RadarTripOptions *_Nullable)tripOptionsFromDictionary:(NSDictionary *)dict;
71
+ - (NSDictionary *)dictionaryValue;
72
+
73
+ @end
74
+
75
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,91 @@
1
+ //
2
+ // RadarTripOrder.h
3
+ // RadarSDK
4
+ //
5
+ // Copyright © 2024 Radar Labs, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ /**
11
+ The statuses for trip orders.
12
+ */
13
+ typedef NS_ENUM(NSInteger, RadarTripOrderStatus) {
14
+ /// Unknown
15
+ RadarTripOrderStatusUnknown NS_SWIFT_NAME(unknown),
16
+ /// Pending
17
+ RadarTripOrderStatusPending NS_SWIFT_NAME(pending),
18
+ /// Fired
19
+ RadarTripOrderStatusFired NS_SWIFT_NAME(fired),
20
+ /// Canceled
21
+ RadarTripOrderStatusCanceled NS_SWIFT_NAME(canceled),
22
+ /// Completed
23
+ RadarTripOrderStatusCompleted NS_SWIFT_NAME(completed)
24
+ };
25
+
26
+ /**
27
+ Represents a trip order.
28
+ */
29
+ @interface RadarTripOrder : NSObject
30
+
31
+ /**
32
+ The ID of the trip order.
33
+ */
34
+ @property (nonnull, copy, nonatomic, readonly) NSString *_id;
35
+
36
+ /**
37
+ The optional GUID of the trip order.
38
+ */
39
+ @property (nullable, copy, nonatomic, readonly) NSString *guid;
40
+
41
+ /**
42
+ The optional handoff mode of the trip order.
43
+ */
44
+ @property (nullable, copy, nonatomic, readonly) NSString *handoffMode;
45
+
46
+ /**
47
+ The status of the trip order.
48
+ */
49
+ @property (assign, nonatomic, readonly) RadarTripOrderStatus status;
50
+
51
+ /**
52
+ The optional date when the order was fired.
53
+ */
54
+ @property (nullable, strong, nonatomic, readonly) NSDate *firedAt;
55
+
56
+ /**
57
+ The optional number of fired attempts.
58
+ */
59
+ @property (nullable, strong, nonatomic, readonly) NSNumber *firedAttempts;
60
+
61
+ /**
62
+ The optional reason why the order was fired.
63
+ */
64
+ @property (nullable, copy, nonatomic, readonly) NSString *firedReason;
65
+
66
+ /**
67
+ The date when the order was last updated.
68
+ */
69
+ @property (nonnull, strong, nonatomic, readonly) NSDate *updatedAt;
70
+
71
+ - (NSDictionary *_Nonnull)dictionaryValue;
72
+
73
+ @end
74
+
75
+ @interface RadarTripOrder ()
76
+
77
+ - (instancetype _Nullable)initWithId:(NSString *_Nonnull)_id
78
+ guid:(NSString *_Nullable)guid
79
+ handoffMode:(NSString *_Nullable)handoffMode
80
+ status:(RadarTripOrderStatus)status
81
+ firedAt:(NSDate *_Nullable)firedAt
82
+ firedAttempts:(NSNumber *_Nullable)firedAttempts
83
+ firedReason:(NSString *_Nullable)firedReason
84
+ updatedAt:(NSDate *_Nonnull)updatedAt;
85
+
86
+ - (instancetype _Nullable)initWithObject:(id _Nonnull)object;
87
+
88
+ + (NSArray<RadarTripOrder *> *_Nullable)ordersFromObject:(id _Nonnull)object;
89
+ + (NSArray<NSDictionary *> *_Nullable)arrayForOrders:(NSArray<RadarTripOrder *> *_Nullable)orders;
90
+
91
+ @end
@@ -0,0 +1,164 @@
1
+ //
2
+ // RadarUser.h
3
+ // RadarSDK
4
+ //
5
+ // Copyright © 2019 Radar Labs, Inc. All rights reserved.
6
+ //
7
+
8
+ #import "RadarBeacon.h"
9
+ #import "RadarChain.h"
10
+ #import "RadarFraud.h"
11
+ #import "RadarGeofence.h"
12
+ #import "RadarPlace.h"
13
+ #import "RadarRegion.h"
14
+ #import "RadarSegment.h"
15
+ #import "RadarTrip.h"
16
+ #import <Foundation/Foundation.h>
17
+
18
+ typedef NS_ENUM(NSInteger, RadarLocationSource);
19
+ typedef NS_ENUM(NSInteger, RadarActivityType);
20
+
21
+ /**
22
+ Represents the current user state.
23
+ */
24
+ @interface RadarUser : NSObject
25
+
26
+ /**
27
+ The Radar ID of the user.
28
+ */
29
+ @property (nonnull, copy, nonatomic, readonly) NSString *_id;
30
+
31
+ /**
32
+ The unique ID of the user, provided when you identified the user. May be `nil` if the user has not been identified.
33
+ */
34
+ @property (nullable, copy, nonatomic, readonly) NSString *userId;
35
+
36
+ /**
37
+ The device ID of the user.
38
+ */
39
+ @property (nullable, copy, nonatomic, readonly) NSString *deviceId;
40
+
41
+ /**
42
+ The optional description of the user. Not to be confused with the `NSObject` `description` property.
43
+ */
44
+ @property (nullable, copy, nonatomic, readonly) NSString *__description;
45
+
46
+ /**
47
+ The optional set of custom key-value pairs for the user.
48
+ */
49
+ @property (nullable, copy, nonatomic, readonly) NSDictionary *metadata;
50
+
51
+ /**
52
+ The user's current location.
53
+ */
54
+ @property (nonnull, strong, nonatomic, readonly) CLLocation *location;
55
+
56
+ /**
57
+ The user's current activity type.
58
+ */
59
+ @property (assign, nonatomic, readonly) RadarActivityType activityType;
60
+
61
+ /**
62
+ An array of the user's current geofences. May be `nil` or empty if the user is not in any geofences.
63
+
64
+ @see https://radar.com/documentation/geofences
65
+ */
66
+ @property (nullable, copy, nonatomic, readonly) NSArray<RadarGeofence *> *geofences;
67
+
68
+ /**
69
+ The user's current place. May be `nil` if the user is not at a place or if Places is not enabled.
70
+
71
+ @see https://radar.com/documentation/places
72
+ */
73
+ @property (nullable, copy, nonatomic, readonly) RadarPlace *place;
74
+
75
+ /**
76
+ An array of the user's nearby beacons. May be `nil` or empty if the user is not near any beacons or if Beacons is not enabled.
77
+
78
+ @see https://radar.com/documentation/beacons
79
+ */
80
+ @property (nullable, copy, nonatomic, readonly) NSArray<RadarBeacon *> *beacons;
81
+
82
+ /**
83
+ A boolean indicating whether the user is stopped.
84
+ */
85
+ @property (assign, nonatomic, readonly) BOOL stopped;
86
+
87
+ /**
88
+ A boolean indicating whether the user was last updated in the foreground.
89
+ */
90
+ @property (assign, nonatomic, readonly) BOOL foreground;
91
+
92
+ /**
93
+ The user's current country. May be `nil` if country is not available or if Regions is not enabled.
94
+
95
+ @see https://radar.com/documentation/regions
96
+ */
97
+ @property (nullable, strong, nonatomic, readonly) RadarRegion *country;
98
+
99
+ /**
100
+ The user's current state. May be `nil` if state is not available or if Regions is not enabled.
101
+
102
+ @see https://radar.com/documentation/regions
103
+ */
104
+ @property (nullable, strong, nonatomic, readonly) RadarRegion *state;
105
+
106
+ /**
107
+ The user's current designated market area (DMA). May be `nil` if DMA is not available or if Regions is not enabled.
108
+
109
+ @see https://radar.com/documentation/regions
110
+ */
111
+ @property (nullable, strong, nonatomic, readonly) RadarRegion *dma;
112
+
113
+ /**
114
+ The user's current postal code. May be `nil` if postal code is not available or if Regions is not enabled.
115
+
116
+ @see https://radar.com/documentation/regions
117
+ */
118
+ @property (nullable, strong, nonatomic, readonly) RadarRegion *postalCode;
119
+
120
+ /**
121
+ The user's nearby chains. May be `nil` if no chains are nearby or if nearby chains are not enabled.
122
+ */
123
+ @property (nullable, copy, nonatomic, readonly) NSArray<RadarChain *> *nearbyPlaceChains;
124
+
125
+ /**
126
+ The user's segments. May be `nil` if segments are not enabled.
127
+ */
128
+ @property (nullable, copy, nonatomic, readonly) NSArray<RadarSegment *> *segments;
129
+
130
+ /**
131
+ The user's nearby chains. May be `nil` if segments are not enabled.
132
+ */
133
+ @property (nullable, copy, nonatomic, readonly) NSArray<RadarChain *> *topChains;
134
+
135
+ - (NSDictionary *_Nonnull)dictionaryValue;
136
+
137
+ /**
138
+ The source of the user's current location.
139
+ */
140
+ @property (assign, nonatomic, readonly) RadarLocationSource source;
141
+
142
+ /**
143
+ The user's current trip. May be `nil` if the user is not currently on a trip.
144
+
145
+ @see https://radar.com/documentation/trip-tracking
146
+ */
147
+ @property (nullable, strong, nonatomic, readonly) RadarTrip *trip;
148
+
149
+ /**
150
+ A boolean indicating whether the user is marked as debug
151
+ */
152
+ @property (assign, nonatomic, readonly) BOOL debug;
153
+
154
+ /**
155
+ The user's current fraud state. May be `nil` if Fraud is not enabled.
156
+
157
+ @see https://radar.com/documentation/fraud
158
+ */
159
+ @property (nullable, copy, nonatomic, readonly) RadarFraud *fraud;
160
+
161
+
162
+ @property (assign, nonatomic, readonly) double altitude;
163
+
164
+ @end
@@ -0,0 +1,31 @@
1
+ //
2
+ // RadarVerifiedDelegate.h
3
+ // RadarSDK
4
+ //
5
+ // Copyright © 2023 Radar Labs, Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ #import "Radar.h"
11
+ #import "RadarVerifiedLocationToken.h"
12
+
13
+ NS_ASSUME_NONNULL_BEGIN
14
+
15
+ /**
16
+ A delegate for client-side delivery of verified location tokens. For more information, see https://radar.com/documentation/fraud
17
+
18
+ @see https://radar.com/documentation/fraud
19
+ */
20
+ @protocol RadarVerifiedDelegate<NSObject>
21
+ @optional
22
+ /**
23
+ Tells the delegate that the current user's verified location was updated. Verify the token server-side using your secret key.
24
+
25
+ @param token The token.
26
+ */
27
+ - (void)didUpdateToken:(RadarVerifiedLocationToken *_Nonnull)token NS_SWIFT_NAME(didUpdateToken(_:));
28
+
29
+ @end
30
+
31
+ NS_ASSUME_NONNULL_END