react-native-radar 3.30.0-beta.2 → 3.30.0-beta.3
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.
- package/android/src/newarch/java/com/radar/RadarModule.kt +1 -1
- package/android/src/oldarch/java/com/radar/RadarModule.java +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/ios/RNRadar.mm +1 -1
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar-Swift.h +7 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar.h +1380 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarAddress.h +172 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarBeacon.h +75 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarChain.h +44 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarCircleGeometry.h +27 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarContext.h +65 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarCoordinate.h +23 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarDelegate.h +67 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarEvent.h +209 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarFraud.h +73 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarGeofence.h +57 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarGeofenceGeometry.h +15 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInAppMessage.h +18 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInAppMessageDelegate.h +53 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarIndoorsProtocol.h +23 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInitializeOptions.h +22 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarMotionProtocol.h +28 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarOperatingHours.h +15 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarPlace.h +85 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarPolygonGeometry.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRegion.h +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRoute.h +42 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteDistance.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteDuration.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteGeometry.h +28 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteMatrix.h +34 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRouteMode.h +32 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarRoutes.h +54 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK-Swift.h +364 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK.h +45 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSdkConfiguration.h +56 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSegment.h +32 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTimeZone.h +52 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTrackingOptions.h +204 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTrip.h +97 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTripOptions.h +75 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTripOrder.h +91 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarUser.h +164 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarVerifiedDelegate.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarVerifiedLocationToken.h +66 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Info.plist +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.abi.json +3608 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/module.modulemap +11 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/PrivacyInfo.xcprivacy +106 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/Radar-Swift.h +7 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/Radar.h +1380 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarAddress.h +172 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarBeacon.h +75 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarChain.h +44 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarCircleGeometry.h +27 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarContext.h +65 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarCoordinate.h +23 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarDelegate.h +67 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarEvent.h +209 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarFraud.h +73 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarGeofence.h +57 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarGeofenceGeometry.h +15 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInAppMessage.h +18 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInAppMessageDelegate.h +53 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarIndoorsProtocol.h +23 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInitializeOptions.h +22 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarMotionProtocol.h +28 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarOperatingHours.h +15 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarPlace.h +85 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarPolygonGeometry.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRegion.h +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRoute.h +42 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteDistance.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteDuration.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteGeometry.h +28 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteMatrix.h +34 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRouteMode.h +32 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarRoutes.h +54 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK-Swift.h +724 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK.h +45 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSdkConfiguration.h +56 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSegment.h +32 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTimeZone.h +52 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrackingOptions.h +204 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrip.h +97 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTripOptions.h +75 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTripOrder.h +91 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarUser.h +164 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarVerifiedDelegate.h +31 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarVerifiedLocationToken.h +66 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Info.plist +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +3608 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +3608 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +82 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/module.modulemap +11 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/PrivacyInfo.xcprivacy +106 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeResources +685 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Headers/RadarSDKMotion.h +38 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Info.plist +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Modules/module.modulemap +6 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/RadarSDKMotion +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Headers/RadarSDKMotion.h +38 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Info.plist +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Modules/module.modulemap +6 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/RadarSDKMotion +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeResources +124 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeSignature +0 -0
- package/package.json +1 -1
- package/src/version.ts +1 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarAddress.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RadarCoordinate.h"
|
|
9
|
+
#import "RadarTimeZone.h"
|
|
10
|
+
#import <Foundation/Foundation.h>
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
The confidence levels for geocoding results.
|
|
14
|
+
*/
|
|
15
|
+
typedef NS_ENUM(NSInteger, RadarAddressConfidence) {
|
|
16
|
+
/// Unknown
|
|
17
|
+
RadarAddressConfidenceNone NS_SWIFT_NAME(none) = 0,
|
|
18
|
+
/// Exact
|
|
19
|
+
RadarAddressConfidenceExact NS_SWIFT_NAME(exact) = 1,
|
|
20
|
+
/// Interpolated
|
|
21
|
+
RadarAddressConfidenceInterpolated NS_SWIFT_NAME(interpolated) = 2,
|
|
22
|
+
/// Fallback
|
|
23
|
+
RadarAddressConfidenceFallback NS_SWIFT_NAME(fallback) = 3
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
Represents an address.
|
|
31
|
+
|
|
32
|
+
@see https://radar.com/documentation/api#geocoding
|
|
33
|
+
*/
|
|
34
|
+
@interface RadarAddress : NSObject
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
The location coordinate of the address.
|
|
38
|
+
*/
|
|
39
|
+
@property (assign, nonatomic, readonly) CLLocationCoordinate2D coordinate;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
The formatted string representation of the address.
|
|
43
|
+
*/
|
|
44
|
+
@property (nullable, copy, nonatomic, readonly) NSString *formattedAddress;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
The name of the country of the address.
|
|
48
|
+
*/
|
|
49
|
+
@property (nullable, copy, nonatomic, readonly) NSString *country;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
The unique code of the country of the address.
|
|
53
|
+
*/
|
|
54
|
+
@property (nullable, copy, nonatomic, readonly) NSString *countryCode;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
The flag of the country of the address.
|
|
58
|
+
*/
|
|
59
|
+
@property (nullable, copy, nonatomic, readonly) NSString *countryFlag;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
The name of the DMA of the address.
|
|
63
|
+
*/
|
|
64
|
+
@property (nullable, copy, nonatomic, readonly) NSString *dma;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
The unique code of the DMA of the address.
|
|
68
|
+
*/
|
|
69
|
+
@property (nullable, copy, nonatomic, readonly) NSString *dmaCode;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
The name of the state of the address.
|
|
73
|
+
*/
|
|
74
|
+
@property (nullable, copy, nonatomic, readonly) NSString *state;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
The unique code of the state of the address.
|
|
78
|
+
*/
|
|
79
|
+
@property (nullable, copy, nonatomic, readonly) NSString *stateCode;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
The postal code of the address.
|
|
83
|
+
*/
|
|
84
|
+
@property (nullable, copy, nonatomic, readonly) NSString *postalCode;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
The city of the address.
|
|
88
|
+
*/
|
|
89
|
+
@property (nullable, copy, nonatomic, readonly) NSString *city;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
The borough of the address.
|
|
93
|
+
*/
|
|
94
|
+
@property (nullable, copy, nonatomic, readonly) NSString *borough;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
The county of the address.
|
|
98
|
+
*/
|
|
99
|
+
@property (nullable, copy, nonatomic, readonly) NSString *county;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
The neighborhood of the address.
|
|
103
|
+
*/
|
|
104
|
+
@property (nullable, copy, nonatomic, readonly) NSString *neighborhood;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
The street number of the address.
|
|
108
|
+
*/
|
|
109
|
+
@property (nullable, copy, nonatomic, readonly) NSString *number;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
The street name of the address.
|
|
113
|
+
*/
|
|
114
|
+
@property (nullable, copy, nonatomic, readonly) NSString *street;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
The label of the address.
|
|
118
|
+
*/
|
|
119
|
+
@property (nullable, copy, nonatomic, readonly) NSString *addressLabel;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
The label of the place.
|
|
123
|
+
*/
|
|
124
|
+
@property (nullable, copy, nonatomic, readonly) NSString *placeLabel;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
The unit of the address.
|
|
128
|
+
*/
|
|
129
|
+
@property (nullable, copy, nonatomic, readonly) NSString *unit;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
The plus4 value for the zip of the address.
|
|
133
|
+
*/
|
|
134
|
+
@property (nullable, copy, nonatomic, readonly) NSString *plus4;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
The distance to the search anchor in meters.
|
|
138
|
+
*/
|
|
139
|
+
@property (nullable, copy, nonatomic, readonly) NSNumber *distance;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
The layer of the address, e.g. 'place', 'address', 'intersection', 'street', 'state', etc.
|
|
143
|
+
*/
|
|
144
|
+
@property (nullable, copy, nonatomic, readonly) NSString *layer;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
The metadata of the address.
|
|
148
|
+
*/
|
|
149
|
+
@property (nullable, copy, nonatomic, readonly) NSDictionary *metadata;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
The confidence level of the geocoding result.
|
|
153
|
+
*/
|
|
154
|
+
@property (nonatomic, assign) enum RadarAddressConfidence confidence;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
The time zone information of the address.
|
|
158
|
+
*/
|
|
159
|
+
@property (nullable, copy, nonatomic, readonly) RadarTimeZone *timeZone;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
The categories of the address.
|
|
163
|
+
*/
|
|
164
|
+
@property (nullable, copy, nonatomic, readonly) NSArray<NSString *> *categories;
|
|
165
|
+
|
|
166
|
+
+ (RadarAddress *_Nullable)addressFromObject:(id _Nonnull)object;
|
|
167
|
+
+ (NSArray<NSDictionary *> *_Nullable)arrayForAddresses:(NSArray<RadarAddress *> *_Nullable)addresses;
|
|
168
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
169
|
+
|
|
170
|
+
@end
|
|
171
|
+
|
|
172
|
+
NS_ASSUME_NONNULL_END
|
package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarBeacon.h
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarBeacon.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RadarCoordinate.h"
|
|
9
|
+
#import <CoreLocation/CoreLocation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
Represents a Bluetooth beacon.
|
|
15
|
+
|
|
16
|
+
@see https://radar.com/documentation/beacons
|
|
17
|
+
*/
|
|
18
|
+
@interface RadarBeacon : NSObject
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
The Radar ID of the beacon.
|
|
22
|
+
*/
|
|
23
|
+
@property (nullable, copy, nonatomic, readonly) NSString *_id;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
The description of the beacon. Not to be confused with the `NSObject` `description` property.
|
|
27
|
+
*/
|
|
28
|
+
@property (nullable, copy, nonatomic, readonly) NSString *__description;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
The tag of the beacon.
|
|
32
|
+
*/
|
|
33
|
+
@property (nullable, copy, nonatomic, readonly) NSString *tag;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
The external ID of the beacon.
|
|
37
|
+
*/
|
|
38
|
+
@property (nullable, copy, nonatomic, readonly) NSString *externalId;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
The UUID of the beacon.
|
|
42
|
+
*/
|
|
43
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *uuid;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
The major ID of the beacon.
|
|
47
|
+
*/
|
|
48
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *major;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
The minor ID of the beacon.
|
|
52
|
+
*/
|
|
53
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *minor;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
The optional set of custom key-value pairs for the beacon.
|
|
57
|
+
*/
|
|
58
|
+
@property (nullable, copy, nonatomic, readonly) NSDictionary *metadata;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
The location of the beacon.
|
|
62
|
+
*/
|
|
63
|
+
@property (nullable, strong, nonatomic, readonly) RadarCoordinate *geometry;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
The RSSI of the beacon, or 0 if not available.
|
|
67
|
+
*/
|
|
68
|
+
@property (nonatomic, readonly) NSInteger rssi;
|
|
69
|
+
|
|
70
|
+
+ (NSArray<NSDictionary *> *_Nullable)arrayForBeacons:(NSArray<RadarBeacon *> *_Nullable)beacons;
|
|
71
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
72
|
+
|
|
73
|
+
@end
|
|
74
|
+
|
|
75
|
+
NS_ASSUME_NONNULL_END
|
package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarChain.h
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarChain.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
Represents the chain of a place.
|
|
12
|
+
|
|
13
|
+
@see https://radar.com/documentation/places
|
|
14
|
+
*/
|
|
15
|
+
@interface RadarChain : NSObject
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
The unique ID of the chain. For a full list of chains, see https://radar.com/documentation/places/chains.
|
|
19
|
+
|
|
20
|
+
@see https://radar.com/documentation/places/chains
|
|
21
|
+
*/
|
|
22
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *slug;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
The name of the chain. For a full list of chains, see https://radar.com/documentation/places/chains.
|
|
26
|
+
|
|
27
|
+
@see https://radar.com/documentation/places/chains
|
|
28
|
+
*/
|
|
29
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *name;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
The external ID of the chain.
|
|
33
|
+
*/
|
|
34
|
+
@property (nullable, copy, nonatomic, readonly) NSString *externalId;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
The optional set of custom key-value pairs for the chain.
|
|
38
|
+
*/
|
|
39
|
+
@property (nullable, copy, nonatomic, readonly) NSDictionary *metadata;
|
|
40
|
+
|
|
41
|
+
+ (NSArray<NSDictionary *> *_Nullable)arrayForChains:(NSArray<RadarChain *> *_Nullable)chains;
|
|
42
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
43
|
+
|
|
44
|
+
@end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarCircleGeometry.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RadarCoordinate.h"
|
|
9
|
+
#import "RadarGeofenceGeometry.h"
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
Represents the geometry of a circle geofence.
|
|
14
|
+
*/
|
|
15
|
+
@interface RadarCircleGeometry : RadarGeofenceGeometry
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
The center of the circle geofence.
|
|
19
|
+
*/
|
|
20
|
+
@property (nonnull, strong, nonatomic, readonly) RadarCoordinate *center;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
The radius of the circle geofence in meters.
|
|
24
|
+
*/
|
|
25
|
+
@property (assign, nonatomic, readonly) double radius;
|
|
26
|
+
|
|
27
|
+
@end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarContext.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RadarGeofence.h"
|
|
9
|
+
#import "RadarPlace.h"
|
|
10
|
+
#import "RadarRegion.h"
|
|
11
|
+
#import <CoreLocation/CoreLocation.h>
|
|
12
|
+
#import <Foundation/Foundation.h>
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
Represents the context for a location.
|
|
16
|
+
|
|
17
|
+
@see https://radar.com/documentation/api#context
|
|
18
|
+
*/
|
|
19
|
+
@interface RadarContext : NSObject
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
An array of the geofences for the location. May be empty if the location is not in any geofences.
|
|
23
|
+
|
|
24
|
+
@see https://radar.com/documentation/geofences
|
|
25
|
+
*/
|
|
26
|
+
@property (nonnull, copy, nonatomic, readonly) NSArray<RadarGeofence *> *geofences;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
The place for the location. May be `nil` if the location is not at a place or if Places is not enabled.
|
|
30
|
+
|
|
31
|
+
@see https://radar.com/documentation/places
|
|
32
|
+
*/
|
|
33
|
+
@property (nullable, copy, nonatomic, readonly) RadarPlace *place;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
The country of the location. May be `nil` if country is not available or if Regions is not enabled.
|
|
37
|
+
|
|
38
|
+
@see https://radar.com/documentation/regions
|
|
39
|
+
*/
|
|
40
|
+
@property (nullable, strong, nonatomic, readonly) RadarRegion *country;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
The state of the location. May be `nil` if state is not available or if Regions is not enabled.
|
|
44
|
+
|
|
45
|
+
@see https://radar.com/documentation/regions
|
|
46
|
+
*/
|
|
47
|
+
@property (nullable, strong, nonatomic, readonly) RadarRegion *state;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
The designated market area (DMA) of the location. May be `nil` if DMA is not available or if Regions is not enabled.
|
|
51
|
+
|
|
52
|
+
@see https://radar.com/documentation/regions
|
|
53
|
+
*/
|
|
54
|
+
@property (nullable, strong, nonatomic, readonly) RadarRegion *dma;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
The postal code of the location. May be `nil` if postal code is not available or if Regions is not enabled.
|
|
58
|
+
|
|
59
|
+
@see https://radar.com/documentation/regions
|
|
60
|
+
*/
|
|
61
|
+
@property (nullable, strong, nonatomic, readonly) RadarRegion *postalCode;
|
|
62
|
+
|
|
63
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
64
|
+
|
|
65
|
+
@end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarCoordinate.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
|
+
/**
|
|
12
|
+
Represents a location coordinate.
|
|
13
|
+
*/
|
|
14
|
+
@interface RadarCoordinate : NSObject
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
The coordinate.
|
|
18
|
+
*/
|
|
19
|
+
@property (assign, nonatomic, readonly) CLLocationCoordinate2D coordinate;
|
|
20
|
+
|
|
21
|
+
- (NSDictionary* _Nonnull)dictionaryValue;
|
|
22
|
+
|
|
23
|
+
@end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarDelegate.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import "Radar.h"
|
|
11
|
+
#import "RadarEvent.h"
|
|
12
|
+
#import "RadarUser.h"
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
A delegate for client-side delivery of events, location updates, and debug logs. For more information, see https://radar.com/documentation/sdk/ios
|
|
18
|
+
|
|
19
|
+
@see https://radar.com/documentation/sdk/ios
|
|
20
|
+
*/
|
|
21
|
+
@protocol RadarDelegate<NSObject>
|
|
22
|
+
@optional
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
Tells the delegate that events were received.
|
|
26
|
+
|
|
27
|
+
@param events The events received.
|
|
28
|
+
@param user The user, if any.
|
|
29
|
+
*/
|
|
30
|
+
- (void)didReceiveEvents:(NSArray<RadarEvent *> *_Nonnull)events user:(RadarUser *_Nullable)user NS_SWIFT_NAME(didReceiveEvents(_:user:));
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
Tells the delegate that the current user's location was updated and synced to the server.
|
|
34
|
+
|
|
35
|
+
@param location The location.
|
|
36
|
+
@param user The current user.
|
|
37
|
+
*/
|
|
38
|
+
- (void)didUpdateLocation:(CLLocation *_Nonnull)location user:(RadarUser *_Nonnull)user NS_SWIFT_NAME(didUpdateLocation(_:user:));
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
Tells the delegate that the client's location was updated but not necessarily synced to the server. To receive only server-synced location updates and user
|
|
42
|
+
state, use `didUpdateLocation:user:` instead.
|
|
43
|
+
|
|
44
|
+
@param location The location.
|
|
45
|
+
@param stopped A boolean indicating whether the client is stopped.
|
|
46
|
+
@param source The source of the location.
|
|
47
|
+
*/
|
|
48
|
+
- (void)didUpdateClientLocation:(CLLocation *_Nonnull)location stopped:(BOOL)stopped source:(RadarLocationSource)source NS_SWIFT_NAME(didUpdateClientLocation(_:stopped:source:));
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
Tells the delegate that a request failed.
|
|
52
|
+
|
|
53
|
+
@param status The status.
|
|
54
|
+
*/
|
|
55
|
+
- (void)didFailWithStatus:(RadarStatus)status NS_SWIFT_NAME(didFail(status:));
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
Tells the delegate that a debug log message was received.
|
|
59
|
+
|
|
60
|
+
@param message The message.
|
|
61
|
+
*/
|
|
62
|
+
- (void)didLogMessage:(NSString *_Nonnull)message NS_SWIFT_NAME(didLog(message:));
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@end
|
|
66
|
+
|
|
67
|
+
NS_ASSUME_NONNULL_END
|
package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarEvent.h
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarEvent.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RadarGeofence.h"
|
|
9
|
+
#import "RadarPlace.h"
|
|
10
|
+
#import "RadarRegion.h"
|
|
11
|
+
#import "RadarUser.h"
|
|
12
|
+
#import "RadarFraud.h"
|
|
13
|
+
#import <CoreLocation/CoreLocation.h>
|
|
14
|
+
#import <Foundation/Foundation.h>
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
Represents a change in user state.
|
|
18
|
+
*/
|
|
19
|
+
@interface RadarEvent : NSObject
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
The types for events.
|
|
23
|
+
*/
|
|
24
|
+
typedef NS_ENUM(NSInteger, RadarEventType) {
|
|
25
|
+
/// Unknown
|
|
26
|
+
RadarEventTypeUnknown NS_SWIFT_NAME(unknown),
|
|
27
|
+
// A conversion type, created by calling `Radar.sendEvent()`. The type value
|
|
28
|
+
// will be assigned to the `conversionName` property.
|
|
29
|
+
RadarEventTypeConversion NS_SWIFT_NAME(conversion),
|
|
30
|
+
/// `user.entered_geofence`
|
|
31
|
+
RadarEventTypeUserEnteredGeofence NS_SWIFT_NAME(userEnteredGeofence),
|
|
32
|
+
/// `user.exited_geofence`
|
|
33
|
+
RadarEventTypeUserExitedGeofence NS_SWIFT_NAME(userExitedGeofence),
|
|
34
|
+
RadarEventTypeUserEnteredPlace NS_SWIFT_NAME(userEnteredPlace),
|
|
35
|
+
/// `user.exited_place`
|
|
36
|
+
RadarEventTypeUserExitedPlace NS_SWIFT_NAME(userExitedPlace),
|
|
37
|
+
/// `user.nearby_place_chain`
|
|
38
|
+
RadarEventTypeUserNearbyPlaceChain NS_SWIFT_NAME(userNearbyPlaceChain),
|
|
39
|
+
/// `user.entered_region_country`
|
|
40
|
+
RadarEventTypeUserEnteredRegionCountry NS_SWIFT_NAME(userEnteredRegionCountry),
|
|
41
|
+
/// `user.exited_region_country`
|
|
42
|
+
RadarEventTypeUserExitedRegionCountry NS_SWIFT_NAME(userExitedRegionCountry),
|
|
43
|
+
/// `user.entered_region_state`
|
|
44
|
+
RadarEventTypeUserEnteredRegionState NS_SWIFT_NAME(userEnteredRegionState),
|
|
45
|
+
/// `user.exited_region_state`
|
|
46
|
+
RadarEventTypeUserExitedRegionState NS_SWIFT_NAME(userExitedRegionState),
|
|
47
|
+
/// `user.entered_region_dma`
|
|
48
|
+
RadarEventTypeUserEnteredRegionDMA NS_SWIFT_NAME(userEnteredRegionDMA),
|
|
49
|
+
/// `user.exited_region_dma`
|
|
50
|
+
RadarEventTypeUserExitedRegionDMA NS_SWIFT_NAME(userExitedRegionDMA),
|
|
51
|
+
/// `user.started_trip`
|
|
52
|
+
RadarEventTypeUserStartedTrip NS_SWIFT_NAME(userStartedTrip),
|
|
53
|
+
/// `user.updated_trip`
|
|
54
|
+
RadarEventTypeUserUpdatedTrip NS_SWIFT_NAME(userUpdatedTrip),
|
|
55
|
+
/// `user.approaching_trip_destination`
|
|
56
|
+
RadarEventTypeUserApproachingTripDestination NS_SWIFT_NAME(userApproachingTripDestination),
|
|
57
|
+
/// `user.arrived_at_trip_destination`
|
|
58
|
+
RadarEventTypeUserArrivedAtTripDestination NS_SWIFT_NAME(userArrivedAtTripDestination),
|
|
59
|
+
/// `user.stopped_trip`
|
|
60
|
+
RadarEventTypeUserStoppedTrip NS_SWIFT_NAME(userStoppedTrip),
|
|
61
|
+
/// `user.entered_beacon`
|
|
62
|
+
RadarEventTypeUserEnteredBeacon NS_SWIFT_NAME(userEnteredBeacon),
|
|
63
|
+
/// `user.exited_beacon`
|
|
64
|
+
RadarEventTypeUserExitedBeacon NS_SWIFT_NAME(userExitedBeacon),
|
|
65
|
+
/// `user.entered_region_postal_code`
|
|
66
|
+
RadarEventTypeUserEnteredRegionPostalCode NS_SWIFT_NAME(userEnteredRegionPostalCode),
|
|
67
|
+
/// `user.exited_region_postal_code`
|
|
68
|
+
RadarEventTypeUserExitedRegionPostalCode NS_SWIFT_NAME(userExitedRegionPostalCode),
|
|
69
|
+
/// `user.dwelled_in_geofence`
|
|
70
|
+
RadarEventTypeUserDwelledInGeofence NS_SWIFT_NAME(userDwelledInGeofence),
|
|
71
|
+
/// 'user.arrived_at_wrong_trip_destination`
|
|
72
|
+
RadarEventTypeUserArrivedAtWrongTripDestination NS_SWIFT_NAME(userArrivedAtWrongTripDestination),
|
|
73
|
+
/// `user.failed_fraud`
|
|
74
|
+
RadarEventTypeUserFailedFraud NS_SWIFT_NAME(userFailedFraud),
|
|
75
|
+
/// `user.fired_trip_orders`
|
|
76
|
+
RadarEventTypeUserFiredTripOrders NS_SWIFT_NAME(userFiredTripOrders)
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
The confidence levels for events.
|
|
81
|
+
*/
|
|
82
|
+
typedef NS_ENUM(NSInteger, RadarEventConfidence) {
|
|
83
|
+
/// Unknown confidence
|
|
84
|
+
RadarEventConfidenceNone NS_SWIFT_NAME(none) = 0,
|
|
85
|
+
/// Low confidence
|
|
86
|
+
RadarEventConfidenceLow NS_SWIFT_NAME(low) = 1,
|
|
87
|
+
/// Medium confidence
|
|
88
|
+
RadarEventConfidenceMedium NS_SWIFT_NAME(medium) = 2,
|
|
89
|
+
/// High confidence
|
|
90
|
+
RadarEventConfidenceHigh NS_SWIFT_NAME(high) = 3
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
The verification types for events.
|
|
95
|
+
*/
|
|
96
|
+
typedef NS_ENUM(NSInteger, RadarEventVerification) {
|
|
97
|
+
/// Accept event
|
|
98
|
+
RadarEventVerificationAccept NS_SWIFT_NAME(accept) = 1,
|
|
99
|
+
/// Unverify event
|
|
100
|
+
RadarEventVerificationUnverify NS_SWIFT_NAME(unverify) = 0,
|
|
101
|
+
/// Reject event
|
|
102
|
+
RadarEventVerificationReject NS_SWIFT_NAME(reject) = -1
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
The Radar ID of the event.
|
|
107
|
+
*/
|
|
108
|
+
@property (nonnull, copy, nonatomic, readonly) NSString *_id;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
The datetime when the event occurred on the device.
|
|
112
|
+
*/
|
|
113
|
+
@property (nonnull, copy, nonatomic, readonly) NSDate *createdAt;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
The datetime when the event was created on the server.
|
|
117
|
+
*/
|
|
118
|
+
@property (nonnull, copy, nonatomic, readonly) NSDate *actualCreatedAt;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
A boolean indicating whether the event was generated with your live API key.
|
|
122
|
+
*/
|
|
123
|
+
@property (assign, nonatomic, readonly) BOOL live;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
The type of the event.
|
|
127
|
+
*/
|
|
128
|
+
@property (assign, nonatomic, readonly) RadarEventType type;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
The name of the conversion event. This will only be set if the `type` is `RadarEventTypeConversion`.
|
|
132
|
+
*/
|
|
133
|
+
@property (nullable, copy, nonatomic, readonly) NSString *conversionName;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
The geofence for which the event was generated. May be `nil` for non-geofence events.
|
|
137
|
+
*/
|
|
138
|
+
@property (nullable, strong, nonatomic, readonly) RadarGeofence *geofence;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
The place for which the event was generated. May be `nil` for non-place events.
|
|
142
|
+
*/
|
|
143
|
+
@property (nullable, strong, nonatomic, readonly) RadarPlace *place;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
The region for which the event was generated. May be `null` for non-region events.
|
|
147
|
+
*/
|
|
148
|
+
@property (nullable, strong, nonatomic, readonly) RadarRegion *region;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
The beacon for which the event was generated. May be `nil` for non-beacon events.
|
|
152
|
+
*/
|
|
153
|
+
@property (nullable, strong, nonatomic, readonly) RadarBeacon *beacon;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
The trip for which the event was generated. May be `nil` for non-trip events.
|
|
157
|
+
*/
|
|
158
|
+
@property (nullable, strong, nonatomic, readonly) RadarTrip *trip;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
The fraud checks for which the event was generated. May be `nil` for non-fraud events.
|
|
162
|
+
*/
|
|
163
|
+
@property (nullable, strong, nonatomic, readonly) RadarFraud *fraud;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
For place entry events, alternate place candidates. May be `nil` for non-place events.
|
|
167
|
+
*/
|
|
168
|
+
@property (nullable, strong, nonatomic, readonly) NSArray<RadarPlace *> *alternatePlaces;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
For accepted place entry events, the verified place. May be `nil` for non-place events or unverified events.
|
|
172
|
+
*/
|
|
173
|
+
@property (nullable, strong, nonatomic, readonly) RadarPlace *verifiedPlace;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
The verification of the event.
|
|
177
|
+
*/
|
|
178
|
+
@property (assign, nonatomic, readonly) RadarEventVerification verification;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
The confidence level of the event.
|
|
182
|
+
*/
|
|
183
|
+
@property (assign, nonatomic, readonly) RadarEventConfidence confidence;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
The duration between entry and exit events, in minutes, for exit events. 0 for entry events.
|
|
187
|
+
*/
|
|
188
|
+
@property (assign, nonatomic, readonly) float duration;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
The location of the event.
|
|
192
|
+
*/
|
|
193
|
+
@property (nonnull, strong, nonatomic, readonly) CLLocation *location;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
A boolean indicating whether the event came from a replayed location.
|
|
197
|
+
*/
|
|
198
|
+
@property (assign, nonatomic, readonly) BOOL replayed;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
The metadata of the event. Present on conversion events only.
|
|
202
|
+
*/
|
|
203
|
+
@property (nonnull, copy, nonatomic, readonly) NSDictionary *metadata;
|
|
204
|
+
|
|
205
|
+
+ (NSString *_Nullable)stringForType:(RadarEventType)type;
|
|
206
|
+
+ (NSArray<NSDictionary *> *_Nullable)arrayForEvents:(NSArray<RadarEvent *> *_Nullable)events;
|
|
207
|
+
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
208
|
+
|
|
209
|
+
@end
|